/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hello;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import org.netbeans.microedition.lcdui.SimpleTableModel;
import org.netbeans.microedition.lcdui.SplashScreen;

/**
 * @author LEONI
 */
public class Calculadora extends MIDlet implements CommandListener {

    //***************DECLARACIÓN DE VARIABLES NOMINA UNO******************
     String percepciones, bonouno, bonodos, bonotres, bonocuatro, percepcionesfijas, liquidosinbonos, descuentokdnoref, liquido, quincenas, porcientoliquido, ce, descuentokdref, descuentokd, descuentocsolicita, cpo, porcientodescuentosolicita;
     float intpercepciones, intbonouno, intbonodos, intbonotres, intbonocuatro, intpercepcionesfijas, intliquidosinbonos, intdescuentokdnoref, intliquido, intquincenas, intporcentajeliquido, intporcientoliquido, intce, intdescuentokdref, intdescuentokd, intdescuentocsolicita, intcpo, intporcientodescuentosolicita;
     float menor, menor1,intcp, uno;

    //***************DECLARACIÓN DE VARIABLES NOMINA DOS******************
     String percepciones1, bonouno1, bonodos1, bonotres1, bonocuatro1, percepcionesfijas1, liquidosinbonos1, descuentokdnoref1, liquido1, quincenas1, porcientoliquido1, ce1, descuentokdref1, descuentokd1, descuentocsolicita1, cpo1, porcientodescuentosolicita1;
     float intpercepciones1, intbonouno1, intbonodos1, intbonotres1, intbonocuatro1, intpercepcionesfijas1, intliquidosinbonos1, intdescuentokdnoref1, intliquido1, intquincenas1, intporcentajeliquido1, intporcientoliquido1, intce1, intdescuentokdref1, intdescuentokd1, intdescuentocsolicita1, intcpo1, intporcientodescuentosolicita1;
     float n2menor, n2menor1,intcp1, uno1;
     
     //**********VARIABLES PARA EL CHOICEGROUP*************///
     int nomina, indice;


    private boolean midletPaused = false;
    //<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
    private java.util.Hashtable __previousDisplayables = new java.util.Hashtable();
    private Command exitCommand;
    private Command backCommand19;
    private Command backCommand20;
    private Command exitCommand1;
    private Command backCommand21;
    private Command okCommand;
    private Command okCommand1;
    private Command backCommand22;
    private Command okCommand2;
    private Command backCommand;
    private Command screenCommand;
    private Command backCommand1;
    private Command exitCommand2;
    private Command backCommand4;
    private Command backCommand3;
    private Command backCommand2;
    private Command backCommand9;
    private Command backCommand8;
    private Command backCommand7;
    private Command backCommand6;
    private Command backCommand5;
    private Command backCommand16;
    private Command backCommand15;
    private Command backCommand10;
    private Command backCommand11;
    private Command backCommand13;
    private Command backCommand12;
    private Command backCommand14;
    private Command okCommand5;
    private Command okCommand3;
    private Command itemCommand;
    private Command okCommand4;
    private Command itemCommand1;
    private Command okCommand7;
    private Command okCommand6;
    private Command exitCommand4;
    private Command exitCommand3;
    private Command okCommand8;
    private Command screenCommand2;
    private Command screenCommand1;
    private Command okCommand9;
    private Command exitCommand5;
    private Command okCommand10;
    private Command screenCommand3;
    private Command exitCommand7;
    private Command okCommand12;
    private Command screenCommand5;
    private Command okCommand11;
    private Command screenCommand4;
    private Command backCommand17;
    private Command exitCommand6;
    private Command backCommand18;
    private Form captura_valores_nomina_uno;
    private TextField textField3;
    private TextField textField5;
    private TextField textField4;
    private TextField textField7;
    private TextField textField6;
    private TextField textField9;
    private TextField textField8;
    private TextField textField12;
    private TextField textField10;
    private TextField textField11;
    private StringItem stringItem;
    private Alert error1;
    private SplashScreen logocliente;
    private Form resultados_NominaUno;
    private TextField textField15;
    private TextField textField14;
    private TextField textField16;
    private Spacer spacer;
    private Alert no_sujeto_credito;
    private Alert sujeto_credito;
    private Alert error0_campo2;
    private Alert error0_campo1;
    private Alert error0;
    private Alert alert_descuentocsolicita;
    private Alert alert1_quincenas;
    private Alert alert5_decuentokdnoref;
    private Alert alert4_descentokdref;
    private Alert alert6_decuentokd;
    private SplashScreen logoCeDeTeC;
    private Form captura_valores_nomina_dos;
    private TextField textField19;
    private TextField textField18;
    private TextField textField21;
    private StringItem stringItem2;
    private TextField textField22;
    private TextField textField17;
    private TextField textField24;
    private TextField textField23;
    private TextField textField25;
    private TextField textField13;
    private TextField textField2;
    private Alert DescuentoKD_Valida_Menor;
    private Form Menu_Nominas_Desc_Solicita;
    private StringItem stringItem1;
    private TextField textField;
    private ChoiceGroup choiceGroup;
    private Form Capacidad_de_Pago;
    private TextField textField1;
    private TextField textField20;
    private Alert Quincenas2;
    private Alert alertDescuentoKD1;
    private Alert DescuentoKDvalido_menor;
    private Alert alertaDescuentoKDNoRef1;
    private Alert DescuentoKDRef2;
    private Image image1;
    private Image image2;
    private SimpleTableModel tableModel1;
    private Ticker ticker;
    private Font font;
    //</editor-fold>//GEN-END:|fields|0|

    /**
     * The HelloMIDlet constructor.
     */
    public Calculadora() {
    }

    //<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
    /**
     * Switches a display to previous displayable of the current displayable.
     * The <code>display</code> instance is obtain from the <code>getDisplay</code> method.
     */
    private void switchToPreviousDisplayable() {
        Displayable __currentDisplayable = getDisplay().getCurrent();
        if (__currentDisplayable != null) {
            Displayable __nextDisplayable = (Displayable) __previousDisplayables.get(__currentDisplayable);
            if (__nextDisplayable != null) {
                switchDisplayable(null, __nextDisplayable);
            }
        }
    }
    //</editor-fold>//GEN-END:|methods|0|
    //<editor-fold defaultstate="collapsed" desc=" Generated Method: initialize ">//GEN-BEGIN:|0-initialize|0|0-preInitialize
    /**
     * Initilizes the application.
     * It is called only once when the MIDlet is started. The method is called before the <code>startMIDlet</code> method.
     */
    private void initialize() {//GEN-END:|0-initialize|0|0-preInitialize
        // write pre-initialize user code here
        okCommand = new Command("CALCULAR", Command.OK, 0);//GEN-BEGIN:|0-initialize|1|0-postInitialize
        alert1_quincenas = new Alert("", "FALTA QUINCENAS.", null, AlertType.ERROR);
        alert1_quincenas.addCommand(getBackCommand3());
        alert1_quincenas.setCommandListener(this);
        alert1_quincenas.setTimeout(Alert.FOREVER);//GEN-END:|0-initialize|1|0-postInitialize
        // write post-initialize user code here
    }//GEN-BEGIN:|0-initialize|2|
    //</editor-fold>//GEN-END:|0-initialize|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: startMIDlet ">//GEN-BEGIN:|3-startMIDlet|0|3-preAction
    /**
     * Performs an action assigned to the Mobile Device - MIDlet Started point.
     */
    public void startMIDlet() {//GEN-END:|3-startMIDlet|0|3-preAction
        // write pre-action user code here
        switchDisplayable(null, getLogocliente());//GEN-LINE:|3-startMIDlet|1|3-postAction
        // write post-action user code here
    }//GEN-BEGIN:|3-startMIDlet|2|
    //</editor-fold>//GEN-END:|3-startMIDlet|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: resumeMIDlet ">//GEN-BEGIN:|4-resumeMIDlet|0|4-preAction
    /**
     * Performs an action assigned to the Mobile Device - MIDlet Resumed point.
     */
    public void resumeMIDlet() {//GEN-END:|4-resumeMIDlet|0|4-preAction
        // write pre-action user code here
//GEN-LINE:|4-resumeMIDlet|1|4-postAction
        // write post-action user code here
    }//GEN-BEGIN:|4-resumeMIDlet|2|
    //</editor-fold>//GEN-END:|4-resumeMIDlet|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: switchDisplayable ">//GEN-BEGIN:|5-switchDisplayable|0|5-preSwitch
    /**
     * Switches a current displayable in a display. The <code>display</code> instance is taken from <code>getDisplay</code> method. This method is used by all actions in the design for switching displayable.
     * @param alert the Alert which is temporarily set to the display; if <code>null</code>, then <code>nextDisplayable</code> is set immediately
     * @param nextDisplayable the Displayable to be set
     */
    public void switchDisplayable(Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch
        // write pre-switch user code here
        Display display = getDisplay();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch
        Displayable __currentDisplayable = display.getCurrent();
        if (__currentDisplayable != null  &&  nextDisplayable != null) {
            __previousDisplayables.put(nextDisplayable, __currentDisplayable);
        }
        if (alert == null) {
            display.setCurrent(nextDisplayable);
        } else {
            display.setCurrent(alert, nextDisplayable);
        }//GEN-END:|5-switchDisplayable|1|5-postSwitch
        // write post-switch user code here
    }//GEN-BEGIN:|5-switchDisplayable|2|
    //</editor-fold>//GEN-END:|5-switchDisplayable|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: commandAction for Displayables ">//GEN-BEGIN:|7-commandAction|0|7-preCommandAction
    /**
     * Called by a system to indicated that a command has been invoked on a particular displayable.
     * @param command the Command that was invoked
     * @param displayable the Displayable where the command was invoked
     */
    public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction
        // write pre-action user code here
        if (displayable == Capacidad_de_Pago) {//GEN-BEGIN:|7-commandAction|1|480-preAction
            if (command == exitCommand7) {//GEN-END:|7-commandAction|1|480-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|2|480-postAction
                // write post-action user code here
            } else if (command == screenCommand5) {//GEN-LINE:|7-commandAction|3|474-preAction
                // write pre-action user code here
                dictamen_final_NominaUno();//GEN-LINE:|7-commandAction|4|474-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|5|488-preAction
        } else if (displayable == DescuentoKDRef2) {
            if (command == backCommand18) {//GEN-END:|7-commandAction|5|488-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|6|488-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|7|399-preAction
        } else if (displayable == DescuentoKD_Valida_Menor) {
            if (command == okCommand9) {//GEN-END:|7-commandAction|7|399-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|8|399-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|9|521-preAction
        } else if (displayable == DescuentoKDvalido_menor) {
            if (command == backCommand20) {//GEN-END:|7-commandAction|9|521-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|10|521-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|11|442-preAction
        } else if (displayable == Menu_Nominas_Desc_Solicita) {
            if (command == exitCommand5) {//GEN-END:|7-commandAction|11|442-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|12|442-postAction
                // write post-action user code here
            } else if (command == okCommand10) {//GEN-LINE:|7-commandAction|13|434-preAction
                indice = choiceGroup.getSelectedIndex();
                if (indice == 0)
                {

                 nomina = 1;
                } else
                {
                    if (indice == 1)
                  {
                    nomina = 2;
                  }else
                   if (indice == 2)
                   {
                     nomina = 3;
                   }else
                    if (indice == 3)
                    {
                      nomina = 4;
                    }
                }
                descuentosolicita();//GEN-LINE:|7-commandAction|14|434-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|15|457-preAction
        } else if (displayable == Quincenas2) {
            if (command == backCommand17) {//GEN-END:|7-commandAction|15|457-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|16|457-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|17|237-preAction
        } else if (displayable == alert1_quincenas) {
            if (command == backCommand3) {//GEN-END:|7-commandAction|17|237-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|18|237-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|19|246-preAction
        } else if (displayable == alert4_descentokdref) {
            if (command == backCommand6) {//GEN-END:|7-commandAction|19|246-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|20|246-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|21|249-preAction
        } else if (displayable == alert5_decuentokdnoref) {
            if (command == backCommand7) {//GEN-END:|7-commandAction|21|249-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|22|249-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|23|252-preAction
        } else if (displayable == alert6_decuentokd) {
            if (command == backCommand8) {//GEN-END:|7-commandAction|23|252-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|24|252-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|25|519-preAction
        } else if (displayable == alertDescuentoKD1) {
            if (command == backCommand19) {//GEN-END:|7-commandAction|25|519-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|26|519-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|27|234-preAction
        } else if (displayable == alert_descuentocsolicita) {
            if (command == backCommand2) {//GEN-END:|7-commandAction|27|234-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|28|234-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|29|523-preAction
        } else if (displayable == alertaDescuentoKDNoRef1) {
            if (command == backCommand21) {//GEN-END:|7-commandAction|29|523-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|30|523-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|31|369-preAction
        } else if (displayable == captura_valores_nomina_dos) {
            if (command == exitCommand4) {//GEN-END:|7-commandAction|31|369-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|32|369-postAction
                // write post-action user code here
            } else if (command == okCommand5) {//GEN-LINE:|7-commandAction|33|319-preAction
                // write pre-action user code here
                Quincenas1();//GEN-LINE:|7-commandAction|34|319-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|35|19-preAction
        } else if (displayable == captura_valores_nomina_uno) {
            if (command == exitCommand) {//GEN-END:|7-commandAction|35|19-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|36|19-postAction
                // write post-action user code here
            } else if (command == okCommand2) {//GEN-LINE:|7-commandAction|37|77-preAction
if (textField4.getString().length() != 0)
            {
                percepciones = textField4.getString();
                intpercepciones = Float.parseFloat(percepciones);
            } else
              {
                textField4.setString("0");
                percepciones = textField4.getString();
                intpercepciones = Float.parseFloat(percepciones);
              }
            if (textField9.getString().length() != 0)
            {
                bonouno = textField9.getString();
                intbonouno = Float.parseFloat(bonouno); // write pre-action user code here
            // write post-action user code here
            } else
              {
                textField9.setString("0");
                bonouno = textField9.getString();
                intbonouno = Float.parseFloat(bonouno);
              }
              if (textField10.getString().length() != 0)
            {
                bonodos = textField10.getString();
                intbonodos = Float.parseFloat(bonodos); // write pre-action user code here
            // write post-action user code here
            } else
              {
                textField10.setString("0");
                bonodos = textField10.getString();
                intbonodos = Float.parseFloat(bonodos);
              }
              if (textField11.getString().length() != 0)
            {
                bonotres = textField11.getString();
                intbonotres = Float.parseFloat(bonotres); // write pre-action user code he
            } else
              {
                textField11.setString("0");
                bonocuatro = textField11.getString();
                intbonocuatro = Float.parseFloat(bonocuatro);
              }

            if (textField12.getString().length() != 0)
            {
                bonocuatro = textField12.getString();
                intbonocuatro = Float.parseFloat(bonocuatro); // write pre-action user code here
            // write post-action user code here
            } else
              {
                textField12.setString("0");
                bonocuatro = textField12.getString();
                intbonocuatro = Float.parseFloat(bonocuatro);
              }
if (textField5.getString().length() != 0)
         {
            liquido = textField5.getString();
            intliquido = Float.parseFloat(liquido);

         } else
           {
             textField5.setString("0");
             liquido = textField5.getString();
             intliquido = Float.parseFloat(liquido);
        }
Quincenas();//GEN-LINE:|7-commandAction|38|77-postAction

            }//GEN-BEGIN:|7-commandAction|39|268-preAction
        } else if (displayable == error0) {
            if (command == backCommand13) {//GEN-END:|7-commandAction|39|268-preAction
                // wdrite pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|40|268-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|41|274-preAction
        } else if (displayable == error0_campo1) {
            if (command == backCommand15) {//GEN-END:|7-commandAction|41|274-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|42|274-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|43|276-preAction
        } else if (displayable == error0_campo2) {
            if (command == backCommand16) {//GEN-END:|7-commandAction|43|276-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|44|276-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|45|530-preAction
        } else if (displayable == error1) {
            if (command == backCommand22) {//GEN-END:|7-commandAction|45|530-preAction
                // write pre-action user code here
//GEN-LINE:|7-commandAction|46|530-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|47|209-preAction
        } else if (displayable == logoCeDeTeC) {
            if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|47|209-preAction
                // write pre-action user code here
                switchDisplayable(null, getMenu_Nominas_Desc_Solicita());//GEN-LINE:|7-commandAction|48|209-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|49|62-preAction
        } else if (displayable == logocliente) {
            if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|49|62-preAction
               // write pre-action user code here
                switchDisplayable(null, getLogoCeDeTeC());//GEN-LINE:|7-commandAction|50|62-postAction

            }//GEN-BEGIN:|7-commandAction|51|218-preAction
        } else if (displayable == no_sujeto_credito) {
            if (command == backCommand1) {//GEN-END:|7-commandAction|51|218-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|52|218-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|53|214-preAction
        } else if (displayable == resultados_NominaUno) {
            if (command == exitCommand2) {//GEN-END:|7-commandAction|53|214-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|54|214-postAction
                // write post-action user code here
            } else if (command == okCommand12) {//GEN-LINE:|7-commandAction|55|477-preAction
                // write pre-action user code here
                unaNomina_o_dosNominas();//GEN-LINE:|7-commandAction|56|477-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|57|220-preAction
        } else if (displayable == sujeto_credito) {
            if (command == backCommand) {//GEN-END:|7-commandAction|57|220-preAction
                // write pre-action user code here
                switchToPreviousDisplayable();//GEN-LINE:|7-commandAction|58|220-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|59|7-postCommandAction
        }//GEN-END:|7-commandAction|59|7-postCommandAction
        // write post-action user code here
    }//GEN-BEGIN:|7-commandAction|60|
    //</editor-fold>//GEN-END:|7-commandAction|60|













    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand ">//GEN-BEGIN:|18-getter|0|18-preInit
    /**
     * Returns an initiliazed instance of exitCommand component.
     * @return the initialized component instance
     */
    public Command getExitCommand() {
        if (exitCommand == null) {//GEN-END:|18-getter|0|18-preInit
            // write pre-init user code here
            exitCommand = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|18-getter|1|18-postInit
            // write post-init user code here
        }//GEN-BEGIN:|18-getter|2|
        return exitCommand;
    }
    //</editor-fold>//GEN-END:|18-getter|2|
    //</editor-fold>
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: captura_valores_nomina_uno ">//GEN-BEGIN:|14-getter|0|14-preInit
    /**
     * Returns an initiliazed instance of captura_valores_nomina_uno component.
     * @return the initialized component instance
     */
    public Form getCaptura_valores_nomina_uno() {
        if (captura_valores_nomina_uno == null) {//GEN-END:|14-getter|0|14-preInit
            // write pre-init user code here
            captura_valores_nomina_uno = new Form("", new Item[] { getStringItem(), getTextField3(), getTextField4(), getTextField5(), getTextField6(), getTextField7(), getTextField8(), getTextField9(), getTextField10(), getTextField11(), getTextField12() });//GEN-BEGIN:|14-getter|1|14-postInit
            captura_valores_nomina_uno.addCommand(getExitCommand());
            captura_valores_nomina_uno.addCommand(getOkCommand2());
            captura_valores_nomina_uno.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit
            // write post-init user code here
        }//GEN-BEGIN:|14-getter|2|
        return captura_valores_nomina_uno;
    }
    //</editor-fold>//GEN-END:|14-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField3 ">//GEN-BEGIN:|25-getter|0|25-preInit
    /**
     * Returns an initiliazed instance of textField3 component.
     * @return the initialized component instance
     */
    public TextField getTextField3() {
        if (textField3 == null) {//GEN-END:|25-getter|0|25-preInit
            // write pre-init user code here
            textField3 = new TextField("Quincena que Abarca:", "1", 32, TextField.DECIMAL);//GEN-LINE:|25-getter|1|25-postInit
            // write post-init user code here




        }//GEN-BEGIN:|25-getter|2|
        return textField3;
    }
    //</editor-fold>//GEN-END:|25-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField4 ">//GEN-BEGIN:|26-getter|0|26-preInit
    /**
     * Returns an initiliazed instance of textField4 component.
     * @return the initialized component instance
     */
    public TextField getTextField4() {
        if (textField4 == null) {//GEN-END:|26-getter|0|26-preInit
            // write pre-init user code here
            textField4 = new TextField("Percepciones:", null, 32, TextField.DECIMAL);//GEN-LINE:|26-getter|1|26-postInit
            // write post-init user code here
        }//GEN-BEGIN:|26-getter|2|
        return textField4;
    }
    //</editor-fold>//GEN-END:|26-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField5 ">//GEN-BEGIN:|27-getter|0|27-preInit
    /**
     * Returns an initiliazed instance of textField5 component.
     * @return the initialized component instance
     */
    public TextField getTextField5() {
        if (textField5 == null) {//GEN-END:|27-getter|0|27-preInit
            // write pre-init user code here
            textField5 = new TextField("L\u00EDquido:", null, 32, TextField.DECIMAL);//GEN-LINE:|27-getter|1|27-postInit
            // write post-init user code here
        }//GEN-BEGIN:|27-getter|2|
        return textField5;
    }
    //</editor-fold>//GEN-END:|27-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField6 ">//GEN-BEGIN:|28-getter|0|28-preInit
    /**
     * Returns an initiliazed instance of textField6 component.
     * @return the initialized component instance
     */
    public TextField getTextField6() {
        if (textField6 == null) {//GEN-END:|28-getter|0|28-preInit
            // write pre-init user code here
            textField6 = new TextField("Descuento KD REF:", null, 32, TextField.DECIMAL);//GEN-LINE:|28-getter|1|28-postInit
            // write post-init user code here
        }//GEN-BEGIN:|28-getter|2|
        return textField6;
    }
    //</editor-fold>//GEN-END:|28-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField7 ">//GEN-BEGIN:|29-getter|0|29-preInit
    /**
     * Returns an initiliazed instance of textField7 component.
     * @return the initialized component instance
     */
    public TextField getTextField7() {
        if (textField7 == null) {//GEN-END:|29-getter|0|29-preInit
            // write pre-init user code here
            textField7 = new TextField("Descuento KD No REF:", null, 32, TextField.DECIMAL);//GEN-LINE:|29-getter|1|29-postInit
            // write post-init user code here
        }//GEN-BEGIN:|29-getter|2|
        return textField7;
    }
    //</editor-fold>//GEN-END:|29-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField8 ">//GEN-BEGIN:|30-getter|0|30-preInit
    /**
     * Returns an initiliazed instance of textField8 component.
     * @return the initialized component instance
     */
    public TextField getTextField8() {
        if (textField8 == null) {//GEN-END:|30-getter|0|30-preInit
            // write pre-init user code here
            textField8 = new TextField("Cant. Quinc. del Descuento KD:", null, 32, TextField.DECIMAL);//GEN-LINE:|30-getter|1|30-postInit
            // write post-init user code here
        }//GEN-BEGIN:|30-getter|2|
        return textField8;
    }
    //</editor-fold>//GEN-END:|30-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField9 ">//GEN-BEGIN:|31-getter|0|31-preInit
    /**
     * Returns an initiliazed instance of textField9 component.
     * @return the initialized component instance
     */
    public TextField getTextField9() {
        if (textField9 == null) {//GEN-END:|31-getter|0|31-preInit
            // write pre-init user code here
            textField9 = new TextField("Bono 1:", null, 32, TextField.DECIMAL);//GEN-LINE:|31-getter|1|31-postInit
            // write post-init user code here
        }//GEN-BEGIN:|31-getter|2|
        return textField9;
    }
    //</editor-fold>//GEN-END:|31-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField10 ">//GEN-BEGIN:|32-getter|0|32-preInit
    /**
     * Returns an initiliazed instance of textField10 component.
     * @return the initialized component instance
     */
    public TextField getTextField10() {
        if (textField10 == null) {//GEN-END:|32-getter|0|32-preInit
            // write pre-init user code here
            textField10 = new TextField("Bono 2:", null, 32, TextField.DECIMAL);//GEN-LINE:|32-getter|1|32-postInit
            // write post-init user code here
        }//GEN-BEGIN:|32-getter|2|
        return textField10;
    }
    //</editor-fold>//GEN-END:|32-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField11 ">//GEN-BEGIN:|33-getter|0|33-preInit
    /**
     * Returns an initiliazed instance of textField11 component.
     * @return the initialized component instance
     */
    public TextField getTextField11() {
        if (textField11 == null) {//GEN-END:|33-getter|0|33-preInit
            // write pre-init user code here
            textField11 = new TextField("Bono 3:", null, 32, TextField.DECIMAL);//GEN-LINE:|33-getter|1|33-postInit
            // write post-init user code here
        }//GEN-BEGIN:|33-getter|2|
        return textField11;
    }
    //</editor-fold>//GEN-END:|33-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField12 ">//GEN-BEGIN:|34-getter|0|34-preInit
    /**
     * Returns an initiliazed instance of textField12 component.
     * @return the initialized component instance
     */
    public TextField getTextField12() {
        if (textField12 == null) {//GEN-END:|34-getter|0|34-preInit
            // write pre-init user code here
            textField12 = new TextField("Bono 4:", null, 32, TextField.DECIMAL);//GEN-LINE:|34-getter|1|34-postInit
            // write post-init user code here
        }//GEN-BEGIN:|34-getter|2|
        return textField12;
    }
    //</editor-fold>//GEN-END:|34-getter|2|















    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand1 ">//GEN-BEGIN:|47-getter|0|47-preInit
    /**
     * Returns an initiliazed instance of exitCommand1 component.
     * @return the initialized component instance
     */
    public Command getExitCommand1() {
        if (exitCommand1 == null) {//GEN-END:|47-getter|0|47-preInit
            // write pre-init user code here
            exitCommand1 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|47-getter|1|47-postInit
            // write post-init user code here
        }//GEN-BEGIN:|47-getter|2|
        return exitCommand1;
    }
    //</editor-fold>//GEN-END:|47-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand1 ">//GEN-BEGIN:|49-getter|0|49-preInit
    /**
     * Returns an initiliazed instance of okCommand1 component.
     * @return the initialized component instance
     */
    public Command getOkCommand1() {
        if (okCommand1 == null) {//GEN-END:|49-getter|0|49-preInit
            // write pre-init user code here
            okCommand1 = new Command("Ok", Command.OK, 0);//GEN-LINE:|49-getter|1|49-postInit
            // write post-init user code here
        }//GEN-BEGIN:|49-getter|2|
        return okCommand1;
    }
    //</editor-fold>//GEN-END:|49-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: stringItem ">//GEN-BEGIN:|55-getter|0|55-preInit
    /**
     * Returns an initiliazed instance of stringItem component.
     * @return the initialized component instance
     */
    public StringItem getStringItem() {
        if (stringItem == null) {//GEN-END:|55-getter|0|55-preInit
            // write pre-init user code here
            stringItem = new StringItem("NOMINA FISICA 1", null, Item.PLAIN);//GEN-BEGIN:|55-getter|1|55-postInit
            stringItem.setLayout(ImageItem.LAYOUT_CENTER | ImageItem.LAYOUT_NEWLINE_AFTER | Item.LAYOUT_2);//GEN-END:|55-getter|1|55-postInit
            // write post-init user code here
        }//GEN-BEGIN:|55-getter|2|
        return stringItem;
    }
    //</editor-fold>//GEN-END:|55-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: logocliente ">//GEN-BEGIN:|61-getter|0|61-preInit
    /**
     * Returns an initiliazed instance of logocliente component.
     * @return the initialized component instance
     */
    public SplashScreen getLogocliente() {
        if (logocliente == null) {//GEN-END:|61-getter|0|61-preInit
            // write pre-init user code here
            logocliente = new SplashScreen(getDisplay());//GEN-BEGIN:|61-getter|1|61-postInit
            logocliente.setTitle("");
            logocliente.setCommandListener(this);
            logocliente.setFullScreenMode(true);
            logocliente.setImage(getImage1());
            logocliente.setTimeout(2000);//GEN-END:|61-getter|1|61-postInit
            // write post-init user code here
        }//GEN-BEGIN:|61-getter|2|
        return logocliente;
    }
    //</editor-fold>//GEN-END:|61-getter|2|









    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: image1 ">//GEN-BEGIN:|71-getter|0|71-preInit
    /**
     * Returns an initiliazed instance of image1 component.
     * @return the initialized component instance
     */
    public Image getImage1() {
        if (image1 == null) {//GEN-END:|71-getter|0|71-preInit
            // write pre-init user code here
            try {//GEN-BEGIN:|71-getter|1|71-@java.io.IOException
                image1 = Image.createImage("/calliquido.jpg");
            } catch (java.io.IOException e) {//GEN-END:|71-getter|1|71-@java.io.IOException
                e.printStackTrace();
            }//GEN-LINE:|71-getter|2|71-postInit
            // write post-init user code here
        }//GEN-BEGIN:|71-getter|3|
        return image1;
    }
    //</editor-fold>//GEN-END:|71-getter|3|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand ">//GEN-BEGIN:|74-getter|0|74-preInit
    /**
     * Returns an initiliazed instance of backCommand component.
     * @return the initialized component instance
     */
    public Command getBackCommand() {
        if (backCommand == null) {//GEN-END:|74-getter|0|74-preInit
            // write pre-init user code here
            backCommand = new Command("OK", Command.BACK, 0);//GEN-LINE:|74-getter|1|74-postInit
            // write post-init user code here
        }//GEN-BEGIN:|74-getter|2|
        return backCommand;
    }
    //</editor-fold>//GEN-END:|74-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: resultados_NominaUno ">//GEN-BEGIN:|72-getter|0|72-preInit
    /**
     * Returns an initiliazed instance of resultados_NominaUno component.
     * @return the initialized component instance
     */
    public Form getResultados_NominaUno() {
        if (resultados_NominaUno == null) {//GEN-END:|72-getter|0|72-preInit

            resultados_NominaUno = new Form("RESULTADOS", new Item[] { getTextField14(), getTextField15(), getTextField16(), getSpacer() });//GEN-BEGIN:|72-getter|1|72-postInit
            resultados_NominaUno.addCommand(getExitCommand2());
            resultados_NominaUno.addCommand(getOkCommand12());
            resultados_NominaUno.setCommandListener(this);//GEN-END:|72-getter|1|72-postInit

            intporcentajeliquido = 0.30f;

            intpercepcionesfijas = intpercepciones - (intbonouno + intbonodos + intbonotres + intbonocuatro);

            intliquidosinbonos = intliquido - (intbonouno + intbonodos + intbonotres + intbonocuatro + intdescuentokdnoref);

                if (intdescuentokdnoref == 0)
                 {
                    intporcientoliquido = (intliquidosinbonos/intquincenas) * intporcentajeliquido;
                    textField14.setString("" + intporcientoliquido);
                 }else
                  {
                    intporcientoliquido = (((intliquido - (intbonouno + intbonodos + intbonotres + intbonocuatro))/ intquincenas) * intporcentajeliquido) - intdescuentokdnoref;
                    textField14.setString("" + intporcientoliquido);
                  }

                intce = ((((intpercepciones - (intbonouno + intbonodos + intbonotres + intbonocuatro)) / intquincenas) * intporcentajeliquido)) - ((intdescuentokdref / intdescuentokd) + intdescuentokdnoref);

                if (intce == 0)
                {
                    textField15.setString("NO APLICA");
                    intce = 0;
                }else
                 {
                    textField15.setString("" + intce);
                 }


               float zz = 0.20f;
               intcp =  ((intliquido - intdescuentokdnoref - (intbonouno + intbonodos + intbonotres + intbonocuatro) - intpercepcionesfijas * zz) / intquincenas);

              if (intcp == 0)
                  {
                  textField16.setString("No aplica");
               }else
                 {
                    intcp = ((intliquido - intdescuentokdnoref - (intbonouno + intbonodos + intbonotres + intbonocuatro) - intpercepcionesfijas * zz) / intquincenas);
                    textField16.setString("" + intcp);
               }
        }//GEN-BEGIN:|72-getter|2|
        return resultados_NominaUno;
    }
    //</editor-fold>//GEN-END:|72-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand2 ">//GEN-BEGIN:|76-getter|0|76-preInit
    /**
     * Returns an initiliazed instance of okCommand2 component.
     * @return the initialized component instance
     */
    public Command getOkCommand2() {
        if (okCommand2 == null) {//GEN-END:|76-getter|0|76-preInit
            // write pre-init user code here
            okCommand2 = new Command("CALCULAR", Command.OK, 0);//GEN-LINE:|76-getter|1|76-postInit
            // write post-init user code here
        }//GEN-BEGIN:|76-getter|2|
        return okCommand2;
    }
    //</editor-fold>//GEN-END:|76-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField14 ">//GEN-BEGIN:|80-getter|0|80-preInit
    /**
     * Returns an initiliazed instance of textField14 component.
     * @return the initialized component instance
     */
    public TextField getTextField14() {
        if (textField14 == null) {//GEN-END:|80-getter|0|80-preInit
            // write pre-init user code here
            textField14 = new TextField("% de L\u00EDquido", null, 32, TextField.DECIMAL | TextField.UNEDITABLE);//GEN-LINE:|80-getter|1|80-postInit
            // write post-init user code here
        }//GEN-BEGIN:|80-getter|2|
        return textField14;
    }
    //</editor-fold>//GEN-END:|80-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField15 ">//GEN-BEGIN:|81-getter|0|81-preInit
    /**
     * Returns an initiliazed instance of textField15 component.
     * @return the initialized component instance
     */
    public TextField getTextField15() {
        if (textField15 == null) {//GEN-END:|81-getter|0|81-preInit
            // write pre-init user code here
            textField15 = new TextField("C.E. :", "", 32, TextField.ANY | TextField.UNEDITABLE);//GEN-LINE:|81-getter|1|81-postInit
            // write post-init user code here
        }//GEN-BEGIN:|81-getter|2|
        return textField15;
    }
    //</editor-fold>//GEN-END:|81-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField16 ">//GEN-BEGIN:|82-getter|0|82-preInit
    /**
     * Returns an initiliazed instance of textField16 component.
     * @return the initialized component instance
     */
    public TextField getTextField16() {
        if (textField16 == null) {//GEN-END:|82-getter|0|82-preInit
            // write pre-init user code here
            textField16 = new TextField("C.P. :", null, 32, TextField.DECIMAL | TextField.UNEDITABLE);//GEN-LINE:|82-getter|1|82-postInit
            // write post-init user code here
        }//GEN-BEGIN:|82-getter|2|
        return textField16;
    }
    //</editor-fold>//GEN-END:|82-getter|2|









    //<editor-fold defaultstate="collapsed" desc=" Generated Method: dictamen_final_NominaUno ">//GEN-BEGIN:|87-if|0|87-preIf
    /**
     * Performs an action assigned to the dictamen_final_NominaUno if-point.
     */
    public void dictamen_final_NominaUno() {//GEN-END:|87-if|0|87-preIf

        if (intdescuentocsolicita <= menor) {//GEN-LINE:|87-if|1|88-preAction
           // intdescuentocsolicita <= intporcientoliquido;
            switchDisplayable(null, getSujeto_credito());//GEN-LINE:|87-if|2|88-postAction
          // write post-action user code here
        } else {//GEN-LINE:|87-if|3|89-preAction
            // write pre-action user code here
            switchDisplayable(null, getNo_sujeto_credito());//GEN-LINE:|87-if|4|89-postAction
            // write post-action user code here
        }//GEN-LINE:|87-if|5|87-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|87-if|6|
    //</editor-fold>//GEN-END:|87-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: sujeto_credito ">//GEN-BEGIN:|90-getter|0|90-preInit
    /**
     * Returns an initiliazed instance of sujeto_credito component.
     * @return the initialized component instance
     */
    public Alert getSujeto_credito() {
        if (sujeto_credito == null) {//GEN-END:|90-getter|0|90-preInit
            // write pre-init user code here
            sujeto_credito = new Alert("Dictamen Final de la Solicitud", "SI ES SUJETO DE CR\u00C9DITO", null, AlertType.INFO);//GEN-BEGIN:|90-getter|1|90-postInit
            sujeto_credito.addCommand(getBackCommand());
            sujeto_credito.setCommandListener(this);
            sujeto_credito.setTimeout(Alert.FOREVER);//GEN-END:|90-getter|1|90-postInit
            // write post-init user code here
        }//GEN-BEGIN:|90-getter|2|
        return sujeto_credito;
    }
    //</editor-fold>//GEN-END:|90-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: no_sujeto_credito ">//GEN-BEGIN:|92-getter|0|92-preInit
    /**
     * Returns an initiliazed instance of no_sujeto_credito component.
     * @return the initialized component instance
     */
    public Alert getNo_sujeto_credito() {
        if (no_sujeto_credito == null) {//GEN-END:|92-getter|0|92-preInit
            // write pre-init user code here
            no_sujeto_credito = new Alert("Dictamen Final de la Solicitud", "NO ES SUJETO DE CR\u00C9DITO", null, AlertType.INFO);//GEN-BEGIN:|92-getter|1|92-postInit
            no_sujeto_credito.addCommand(getBackCommand1());
            no_sujeto_credito.setCommandListener(this);
            no_sujeto_credito.setTimeout(Alert.FOREVER);//GEN-END:|92-getter|1|92-postInit
            // write post-init user code here
        }//GEN-BEGIN:|92-getter|2|
        return no_sujeto_credito;
    }
    //</editor-fold>//GEN-END:|92-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand ">//GEN-BEGIN:|94-getter|0|94-preInit
    /**
     * Returns an initiliazed instance of screenCommand component.
     * @return the initialized component instance
     */
    public Command getScreenCommand() {
        if (screenCommand == null) {//GEN-END:|94-getter|0|94-preInit

     // write pre-init user code here
            screenCommand = new Command("", Command.SCREEN, 0);//GEN-LINE:|94-getter|1|94-postInit
            // write post-init user code here
        }//GEN-BEGIN:|94-getter|2|
        return screenCommand;
    }
    //</editor-fold>//GEN-END:|94-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Method: unouotro_cero ">//GEN-BEGIN:|98-if|0|98-preIf
    /**
     * Performs an action assigned to the unouotro_cero if-point.
     */
    public void unouotro_cero() {//GEN-END:|98-if|0|98-preIf
        // enter pre-if user code here
        if (intquincenas == 0 || intdescuentokd == 0) {//GEN-LINE:|98-if|1|99-preAction
         // write pre-action user code here
            campo_cero();//GEN-LINE:|98-if|2|99-postAction
            // write post-action user code here
        } else {//GEN-LINE:|98-if|3|100-preAction
            // write pre-action user code here
            switchDisplayable(null, getResultados_NominaUno());//GEN-LINE:|98-if|4|100-postAction
            // write post-action user code here
        }//GEN-LINE:|98-if|5|98-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|98-if|6|
    //</editor-fold>//GEN-END:|98-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: error0_campo1 ">//GEN-BEGIN:|104-getter|0|104-preInit
    /**
     * Returns an initiliazed instance of error0_campo1 component.
     * @return the initialized component instance
     */
    public Alert getError0_campo1() {
        if (error0_campo1 == null) {//GEN-END:|104-getter|0|104-preInit
            // write pre-init user code here
            error0_campo1 = new Alert("", "\"QUINCENAS QUE SE ABARCA\" DEBE SER MAYOR A CERO.", null, AlertType.ERROR);//GEN-BEGIN:|104-getter|1|104-postInit
            error0_campo1.addCommand(getBackCommand15());
            error0_campo1.setCommandListener(this);
            error0_campo1.setTimeout(Alert.FOREVER);//GEN-END:|104-getter|1|104-postInit
            // write post-init user code here
        }//GEN-BEGIN:|104-getter|2|
        return error0_campo1;
    }
    //</editor-fold>//GEN-END:|104-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: ambos_cero ">//GEN-BEGIN:|106-if|0|106-preIf
    /**
     * Performs an action assigned to the ambos_cero if-point.
     */
    public void ambos_cero() {//GEN-END:|106-if|0|106-preIf
        // enter pre-if user code here
        if (intquincenas == 0 && intdescuentokd == 0) {//GEN-LINE:|106-if|1|107-preAction
            // write pre-action user code here
            switchDisplayable(null, getError0());//GEN-LINE:|106-if|2|107-postAction
            // write post-action user code here
        } else {//GEN-LINE:|106-if|3|108-preAction

            unouotro_cero();//GEN-LINE:|106-if|4|108-postAction
            // write post-action user code here
        }//GEN-LINE:|106-if|5|106-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|106-if|6|
    //</editor-fold>//GEN-END:|106-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: error0_campo2 ">//GEN-BEGIN:|110-getter|0|110-preInit
    /**
     * Returns an initiliazed instance of error0_campo2 component.
     * @return the initialized component instance
     */
    public Alert getError0_campo2() {
        if (error0_campo2 == null) {//GEN-END:|110-getter|0|110-preInit
            // write pre-init user code here
            error0_campo2 = new Alert("", "\"CANT. QUINC. DEL DESCUENTO KD\" DEBE SER MAYOR A CERO.", null, AlertType.ERROR);//GEN-BEGIN:|110-getter|1|110-postInit
            error0_campo2.addCommand(getBackCommand16());
            error0_campo2.setCommandListener(this);
            error0_campo2.setTimeout(Alert.FOREVER);//GEN-END:|110-getter|1|110-postInit
            // write post-init user code here
        }//GEN-BEGIN:|110-getter|2|
        return error0_campo2;
    }
    //</editor-fold>//GEN-END:|110-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: campo_cero ">//GEN-BEGIN:|113-if|0|113-preIf
    /**
     * Performs an action assigned to the campo_cero if-point.
     */
    public void campo_cero() {//GEN-END:|113-if|0|113-preIf
        // enter pre-if user code here
        if (intquincenas == 0) {//GEN-LINE:|113-if|1|114-preAction
            // write pre-action user code here
            switchDisplayable(null, getError0_campo1());//GEN-LINE:|113-if|2|114-postAction
            // write post-action user code here
        } else {//GEN-LINE:|113-if|3|115-preAction
            // write pre-action user code here
            switchDisplayable(null, getError0_campo2());//GEN-LINE:|113-if|4|115-postAction
            // write post-action user code here
        }//GEN-LINE:|113-if|5|113-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|113-if|6|
    //</editor-fold>//GEN-END:|113-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: error0 ">//GEN-BEGIN:|119-getter|0|119-preInit
    /**
     * Returns an initiliazed instance of error0 component.
     * @return the initialized component instance
     */
    public Alert getError0() {
        if (error0 == null) {//GEN-END:|119-getter|0|119-preInit
            // write pre-init user code here
            error0 = new Alert("", "\"QUINCENAS QUE SE ABARCA\" Y \"CANT. QUINC. DEL DESCUENTO KD\" DEBEN SER MAYOR A CERO.", null, AlertType.ERROR);//GEN-BEGIN:|119-getter|1|119-postInit
            error0.addCommand(getBackCommand13());
            error0.setCommandListener(this);
            error0.setTimeout(Alert.FOREVER);//GEN-END:|119-getter|1|119-postInit
            // write post-init user code here
        }//GEN-BEGIN:|119-getter|2|
        return error0;
    }
    //</editor-fold>//GEN-END:|119-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: descuentosolicita ">//GEN-BEGIN:|134-if|0|134-preIf
    /**
     * Performs an action assigned to the descuentosolicita if-point.
     */
    public void descuentosolicita() {//GEN-END:|134-if|0|134-preIf
        // enter pre-if user code here
        if (textField.getString().length() != 0) {//GEN-LINE:|134-if|1|135-preAction
            descuentocsolicita = textField.getString();
                intdescuentocsolicita = Float.parseFloat(descuentocsolicita);

                switchDisplayable(null, getCaptura_valores_nomina_uno());//GEN-LINE:|134-if|2|135-postAction
            // write post-action user code here
        } else {//GEN-LINE:|134-if|3|136-preAction
            // write pre-action user code here
            switchDisplayable(null, getAlert_descuentocsolicita());//GEN-LINE:|134-if|4|136-postAction
            // write post-action user code here
        }//GEN-LINE:|134-if|5|134-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|134-if|6|
    //</editor-fold>//GEN-END:|134-if|6|
    //</editor-fold>
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: alert_descuentocsolicita ">//GEN-BEGIN:|137-getter|0|137-preInit
    /**
     * Returns an initiliazed instance of alert_descuentocsolicita component.
     * @return the initialized component instance
     */
    public Alert getAlert_descuentocsolicita() {
        if (alert_descuentocsolicita == null) {//GEN-END:|137-getter|0|137-preInit
            // write pre-init user code here
            alert_descuentocsolicita = new Alert("", "FALTA DESCUENTO CR\u00C9DITO QUE SOLICITA.", null, AlertType.ERROR);//GEN-BEGIN:|137-getter|1|137-postInit
            alert_descuentocsolicita.addCommand(getBackCommand2());
            alert_descuentocsolicita.setCommandListener(this);
            alert_descuentocsolicita.setTimeout(Alert.FOREVER);//GEN-END:|137-getter|1|137-postInit
            // write post-init user code here
        }//GEN-BEGIN:|137-getter|2|
        return alert_descuentocsolicita;
    }
    //</editor-fold>//GEN-END:|137-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: Quincenas ">//GEN-BEGIN:|142-if|0|142-preIf
    /**
     * Performs an action assigned to the Quincenas if-point.
     */
    public void Quincenas() {//GEN-END:|142-if|0|142-preIf
        // enter pre-if user code here
        if (textField3.getString().length() != 0) {//GEN-LINE:|142-if|1|143-preAction

                quincenas = textField3.getString();
                intquincenas = Float.parseFloat(quincenas);

                // write pre-action user code here
                DescuentoKDRef();//GEN-LINE:|142-if|2|143-postAction
            // write post-action user code here
        } else {//GEN-LINE:|142-if|3|144-preAction
            // write pre-action user code here
            switchDisplayable(null, alert1_quincenas);//GEN-LINE:|142-if|4|144-postAction
            // write post-action user code here
        }//GEN-LINE:|142-if|5|142-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|142-if|6|
    //</editor-fold>//GEN-END:|142-if|6|
    //</editor-fold>




    //</editor-fold>




    //</editor-fold>



    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKDRef ">//GEN-BEGIN:|161-if|0|161-preIf
    /**
     * Performs an action assigned to the DescuentoKDRef if-point.
     */
    public void DescuentoKDRef() {//GEN-END:|161-if|0|161-preIf
        // enter pre-if user code here
        if (textField6.getString().length() != 0) {//GEN-LINE:|161-if|1|162-preAction
            descuentokdref = textField6.getString();
                intdescuentokdref = Float.parseFloat(descuentokdref);// write pre-action user code here
                DescuentoKDNoRef();//GEN-LINE:|161-if|2|162-postAction
            // write post-action user code here
        } else {//GEN-LINE:|161-if|3|163-preAction
            // write pre-action user code here
            switchDisplayable(null, getAlert4_descentokdref());//GEN-LINE:|161-if|4|163-postAction
            // write post-action user code here
        }//GEN-LINE:|161-if|5|161-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|161-if|6|
    //</editor-fold>//GEN-END:|161-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: alert4_descentokdref ">//GEN-BEGIN:|165-getter|0|165-preInit
    /**
     * Returns an initiliazed instance of alert4_descentokdref component.
     * @return the initialized component instance
     */
    public Alert getAlert4_descentokdref() {
        if (alert4_descentokdref == null) {//GEN-END:|165-getter|0|165-preInit
            // write pre-init user code here
            alert4_descentokdref = new Alert("", "FALTA DESCUENTO KD REF.", null, AlertType.ERROR);//GEN-BEGIN:|165-getter|1|165-postInit
            alert4_descentokdref.addCommand(getBackCommand6());
            alert4_descentokdref.setCommandListener(this);
            alert4_descentokdref.setTimeout(Alert.FOREVER);//GEN-END:|165-getter|1|165-postInit
            // write post-init user code here
        }//GEN-BEGIN:|165-getter|2|
        return alert4_descentokdref;
    }
    //</editor-fold>//GEN-END:|165-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKDNoRef ">//GEN-BEGIN:|167-if|0|167-preIf
    /**
     * Performs an action assigned to the DescuentoKDNoRef if-point.
     */
    public void DescuentoKDNoRef() {//GEN-END:|167-if|0|167-preIf
        // enter pre-if user code here
        if (textField7.getString().length() != 0) {//GEN-LINE:|167-if|1|168-preAction
           descuentokdnoref = textField7.getString();
                intdescuentokdnoref = Float.parseFloat(descuentokdnoref); // write pre-action user code here
                DescuentoKD_valida_menor();//GEN-LINE:|167-if|2|168-postAction
            // write post-action user code here
        } else {//GEN-LINE:|167-if|3|169-preAction
            // write pre-action user code here
            switchDisplayable(null, getAlert5_decuentokdnoref());//GEN-LINE:|167-if|4|169-postAction
            // write post-action user code here
        }//GEN-LINE:|167-if|5|167-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|167-if|6|
    //</editor-fold>//GEN-END:|167-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: alert5_decuentokdnoref ">//GEN-BEGIN:|170-getter|0|170-preInit
    /**
     * Returns an initiliazed instance of alert5_decuentokdnoref component.
     * @return the initialized component instance
     */
    public Alert getAlert5_decuentokdnoref() {
        if (alert5_decuentokdnoref == null) {//GEN-END:|170-getter|0|170-preInit
            // write pre-init user code here
            alert5_decuentokdnoref = new Alert("", "FALTA DESCUENTO KD NO REF.", null, AlertType.ERROR);//GEN-BEGIN:|170-getter|1|170-postInit
            alert5_decuentokdnoref.addCommand(getBackCommand7());
            alert5_decuentokdnoref.setCommandListener(this);
            alert5_decuentokdnoref.setTimeout(Alert.FOREVER);//GEN-END:|170-getter|1|170-postInit
            // write post-init user code here
        }//GEN-BEGIN:|170-getter|2|
        return alert5_decuentokdnoref;
    }
    //</editor-fold>//GEN-END:|170-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKD ">//GEN-BEGIN:|173-if|0|173-preIf
    /**
     * Performs an action assigned to the DescuentoKD if-point.
     */
    public void DescuentoKD() {//GEN-END:|173-if|0|173-preIf
        // enter pre-if user code here
        if (textField8.getString().length() != 0) {//GEN-LINE:|173-if|1|174-preAction
            descuentokd = textField8.getString();
                intdescuentokd  = Float.parseFloat(descuentokd);// write pre-action user code here
                ambos_cero();//GEN-LINE:|173-if|2|174-postAction
            // write post-action user code here
        } else {//GEN-LINE:|173-if|3|175-preAction
            // write pre-action user code here
            switchDisplayable(null, getAlert6_decuentokd());//GEN-LINE:|173-if|4|175-postAction
            // write post-action user code here
        }//GEN-LINE:|173-if|5|173-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|173-if|6|
    //</editor-fold>//GEN-END:|173-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: alert6_decuentokd ">//GEN-BEGIN:|176-getter|0|176-preInit
    /**
     * Returns an initiliazed instance of alert6_decuentokd component.
     * @return the initialized component instance
     */
    public Alert getAlert6_decuentokd() {
        if (alert6_decuentokd == null) {//GEN-END:|176-getter|0|176-preInit
            // write pre-init user code here
            alert6_decuentokd = new Alert("", "FALTA DESCUENTO KD.", null, AlertType.ERROR);//GEN-BEGIN:|176-getter|1|176-postInit
            alert6_decuentokd.addCommand(getBackCommand8());
            alert6_decuentokd.setCommandListener(this);
            alert6_decuentokd.setTimeout(Alert.FOREVER);//GEN-END:|176-getter|1|176-postInit
            // write post-init user code here
        }//GEN-BEGIN:|176-getter|2|
        return alert6_decuentokd;
    }
    //</editor-fold>//GEN-END:|176-getter|2|


    //</editor-fold>




    //</editor-fold>




    //</editor-fold>




    //</editor-fold>



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: logoCeDeTeC ">//GEN-BEGIN:|208-getter|0|208-preInit
    /**
     * Returns an initiliazed instance of logoCeDeTeC component.
     * @return the initialized component instance
     */
    public SplashScreen getLogoCeDeTeC() {
        if (logoCeDeTeC == null) {//GEN-END:|208-getter|0|208-preInit
            // write pre-init user code here
            logoCeDeTeC = new SplashScreen(getDisplay());//GEN-BEGIN:|208-getter|1|208-postInit
            logoCeDeTeC.setTitle("");
            logoCeDeTeC.setCommandListener(this);
            logoCeDeTeC.setFullScreenMode(true);
            logoCeDeTeC.setImage(getImage2());
            logoCeDeTeC.setTimeout(2000);//GEN-END:|208-getter|1|208-postInit
            // write post-init user code here
        }//GEN-BEGIN:|208-getter|2|
        return logoCeDeTeC;
    }
    //</editor-fold>//GEN-END:|208-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand2 ">//GEN-BEGIN:|213-getter|0|213-preInit
    /**
     * Returns an initiliazed instance of exitCommand2 component.
     * @return the initialized component instance
     */
    public Command getExitCommand2() {
        if (exitCommand2 == null) {//GEN-END:|213-getter|0|213-preInit
            // write pre-init user code here
            exitCommand2 = new Command("ATRAS", Command.EXIT, 0);//GEN-LINE:|213-getter|1|213-postInit
            // write post-init user code here
        }//GEN-BEGIN:|213-getter|2|
        return exitCommand2;
    }
    //</editor-fold>//GEN-END:|213-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: image2 ">//GEN-BEGIN:|216-getter|0|216-preInit
    /**
     * Returns an initiliazed instance of image2 component.
     * @return the initialized component instance
     */
    public Image getImage2() {
        if (image2 == null) {//GEN-END:|216-getter|0|216-preInit
            // write pre-init user code here
            try {//GEN-BEGIN:|216-getter|1|216-@java.io.IOException
                image2 = Image.createImage("/cedetec2010.jpg");
            } catch (java.io.IOException e) {//GEN-END:|216-getter|1|216-@java.io.IOException
                e.printStackTrace();
            }//GEN-LINE:|216-getter|2|216-postInit
            // write post-init user code here
        }//GEN-BEGIN:|216-getter|3|
        return image2;
    }
    //</editor-fold>//GEN-END:|216-getter|3|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand1 ">//GEN-BEGIN:|217-getter|0|217-preInit
    /**
     * Returns an initiliazed instance of backCommand1 component.
     * @return the initialized component instance
     */
    public Command getBackCommand1() {
        if (backCommand1 == null) {//GEN-END:|217-getter|0|217-preInit
            // write pre-init user code here
            backCommand1 = new Command("OK", Command.BACK, 0);//GEN-LINE:|217-getter|1|217-postInit
            // write post-init user code here
        }//GEN-BEGIN:|217-getter|2|
        return backCommand1;
    }
    //</editor-fold>//GEN-END:|217-getter|2|


    //</editor-fold>



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand2 ">//GEN-BEGIN:|233-getter|0|233-preInit
    /**
     * Returns an initiliazed instance of backCommand2 component.
     * @return the initialized component instance
     */
    public Command getBackCommand2() {
        if (backCommand2 == null) {//GEN-END:|233-getter|0|233-preInit
            // write pre-init user code here
            backCommand2 = new Command("OK", Command.BACK, 0);//GEN-LINE:|233-getter|1|233-postInit
            // write post-init user code here
        }//GEN-BEGIN:|233-getter|2|
        return backCommand2;
    }
    //</editor-fold>//GEN-END:|233-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand3 ">//GEN-BEGIN:|236-getter|0|236-preInit
    /**
     * Returns an initiliazed instance of backCommand3 component.
     * @return the initialized component instance
     */
    public Command getBackCommand3() {
        if (backCommand3 == null) {//GEN-END:|236-getter|0|236-preInit
            // write pre-init user code here
            backCommand3 = new Command("OK", Command.BACK, 0);//GEN-LINE:|236-getter|1|236-postInit
            // write post-init user code here
        }//GEN-BEGIN:|236-getter|2|
        return backCommand3;
    }
    //</editor-fold>//GEN-END:|236-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand4 ">//GEN-BEGIN:|239-getter|0|239-preInit
    /**
     * Returns an initiliazed instance of backCommand4 component.
     * @return the initialized component instance
     */
    public Command getBackCommand4() {
        if (backCommand4 == null) {//GEN-END:|239-getter|0|239-preInit
            // write pre-init user code here
            backCommand4 = new Command("OK", Command.BACK, 0);//GEN-LINE:|239-getter|1|239-postInit
            // write post-init user code here
        }//GEN-BEGIN:|239-getter|2|
        return backCommand4;
    }
    //</editor-fold>//GEN-END:|239-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand5 ">//GEN-BEGIN:|242-getter|0|242-preInit
    /**
     * Returns an initiliazed instance of backCommand5 component.
     * @return the initialized component instance
     */
    public Command getBackCommand5() {
        if (backCommand5 == null) {//GEN-END:|242-getter|0|242-preInit
            // write pre-init user code here
            backCommand5 = new Command("OK", Command.BACK, 0);//GEN-LINE:|242-getter|1|242-postInit
            // write post-init user code here
        }//GEN-BEGIN:|242-getter|2|
        return backCommand5;
    }
    //</editor-fold>//GEN-END:|242-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand6 ">//GEN-BEGIN:|245-getter|0|245-preInit
    /**
     * Returns an initiliazed instance of backCommand6 component.
     * @return the initialized component instance
     */
    public Command getBackCommand6() {
        if (backCommand6 == null) {//GEN-END:|245-getter|0|245-preInit
            // write pre-init user code here
            backCommand6 = new Command("OK", Command.BACK, 0);//GEN-LINE:|245-getter|1|245-postInit
            // write post-init user code here
        }//GEN-BEGIN:|245-getter|2|
        return backCommand6;
    }
    //</editor-fold>//GEN-END:|245-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand7 ">//GEN-BEGIN:|248-getter|0|248-preInit
    /**
     * Returns an initiliazed instance of backCommand7 component.
     * @return the initialized component instance
     */
    public Command getBackCommand7() {
        if (backCommand7 == null) {//GEN-END:|248-getter|0|248-preInit
            // write pre-init user code here
            backCommand7 = new Command("OK", Command.BACK, 0);//GEN-LINE:|248-getter|1|248-postInit
            // write post-init user code here
        }//GEN-BEGIN:|248-getter|2|
        return backCommand7;
    }
    //</editor-fold>//GEN-END:|248-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand8 ">//GEN-BEGIN:|251-getter|0|251-preInit
    /**
     * Returns an initiliazed instance of backCommand8 component.
     * @return the initialized component instance
     */
    public Command getBackCommand8() {
        if (backCommand8 == null) {//GEN-END:|251-getter|0|251-preInit
            // write pre-init user code here
            backCommand8 = new Command("OK", Command.BACK, 0);//GEN-LINE:|251-getter|1|251-postInit
            // write post-init user code here
        }//GEN-BEGIN:|251-getter|2|
        return backCommand8;
    }
    //</editor-fold>//GEN-END:|251-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand9 ">//GEN-BEGIN:|254-getter|0|254-preInit
    /**
     * Returns an initiliazed instance of backCommand9 component.
     * @return the initialized component instance
     */
    public Command getBackCommand9() {
        if (backCommand9 == null) {//GEN-END:|254-getter|0|254-preInit
            // write pre-init user code here
            backCommand9 = new Command("OK", Command.BACK, 0);//GEN-LINE:|254-getter|1|254-postInit
            // write post-init user code here
        }//GEN-BEGIN:|254-getter|2|
        return backCommand9;
    }
    //</editor-fold>//GEN-END:|254-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand10 ">//GEN-BEGIN:|258-getter|0|258-preInit
    /**
     * Returns an initiliazed instance of backCommand10 component.
     * @return the initialized component instance
     */
    public Command getBackCommand10() {
        if (backCommand10 == null) {//GEN-END:|258-getter|0|258-preInit
            // write pre-init user code here
            backCommand10 = new Command("OK", Command.BACK, 0);//GEN-LINE:|258-getter|1|258-postInit
            // write post-init user code here
        }//GEN-BEGIN:|258-getter|2|
        return backCommand10;
    }
    //</editor-fold>//GEN-END:|258-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand11 ">//GEN-BEGIN:|261-getter|0|261-preInit
    /**
     * Returns an initiliazed instance of backCommand11 component.
     * @return the initialized component instance
     */
    public Command getBackCommand11() {
        if (backCommand11 == null) {//GEN-END:|261-getter|0|261-preInit
            // write pre-init user code here
            backCommand11 = new Command("OK", Command.BACK, 0);//GEN-LINE:|261-getter|1|261-postInit
            // write post-init user code here
        }//GEN-BEGIN:|261-getter|2|
        return backCommand11;
    }
    //</editor-fold>//GEN-END:|261-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand12 ">//GEN-BEGIN:|264-getter|0|264-preInit
    /**
     * Returns an initiliazed instance of backCommand12 component.
     * @return the initialized component instance
     */
    public Command getBackCommand12() {
        if (backCommand12 == null) {//GEN-END:|264-getter|0|264-preInit
            // write pre-init user code here
            backCommand12 = new Command("OK", Command.BACK, 0);//GEN-LINE:|264-getter|1|264-postInit
            // write post-init user code here
        }//GEN-BEGIN:|264-getter|2|
        return backCommand12;
    }
    //</editor-fold>//GEN-END:|264-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand13 ">//GEN-BEGIN:|267-getter|0|267-preInit
    /**
     * Returns an initiliazed instance of backCommand13 component.
     * @return the initialized component instance
     */
    public Command getBackCommand13() {
        if (backCommand13 == null) {//GEN-END:|267-getter|0|267-preInit
            // write pre-init user code here
            backCommand13 = new Command("OK", Command.BACK, 0);//GEN-LINE:|267-getter|1|267-postInit
            // write post-init user code here
        }//GEN-BEGIN:|267-getter|2|
        return backCommand13;
    }
    //</editor-fold>//GEN-END:|267-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand14 ">//GEN-BEGIN:|270-getter|0|270-preInit
    /**
     * Returns an initiliazed instance of backCommand14 component.
     * @return the initialized component instance
     */
    public Command getBackCommand14() {
        if (backCommand14 == null) {//GEN-END:|270-getter|0|270-preInit
            // write pre-init user code here
            backCommand14 = new Command("OK", Command.BACK, 0);//GEN-LINE:|270-getter|1|270-postInit
            // write post-init user code here
        }//GEN-BEGIN:|270-getter|2|
        return backCommand14;
    }
    //</editor-fold>//GEN-END:|270-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand15 ">//GEN-BEGIN:|273-getter|0|273-preInit
    /**
     * Returns an initiliazed instance of backCommand15 component.
     * @return the initialized component instance
     */
    public Command getBackCommand15() {
        if (backCommand15 == null) {//GEN-END:|273-getter|0|273-preInit
            // write pre-init user code here
            backCommand15 = new Command("OK", Command.BACK, 0);//GEN-LINE:|273-getter|1|273-postInit
            // write post-init user code here
        }//GEN-BEGIN:|273-getter|2|
        return backCommand15;
    }
    //</editor-fold>//GEN-END:|273-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand16 ">//GEN-BEGIN:|275-getter|0|275-preInit
    /**
     * Returns an initiliazed instance of backCommand16 component.
     * @return the initialized component instance
     */
    public Command getBackCommand16() {
        if (backCommand16 == null) {//GEN-END:|275-getter|0|275-preInit
            // write pre-init user code here
            backCommand16 = new Command("OK", Command.BACK, 0);//GEN-LINE:|275-getter|1|275-postInit
            // write post-init user code here
        }//GEN-BEGIN:|275-getter|2|
        return backCommand16;
    }
    //</editor-fold>//GEN-END:|275-getter|2|









    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tableModel1 ">//GEN-BEGIN:|285-getter|0|285-preInit
    /**
     * Returns an initiliazed instance of tableModel1 component.
     * @return the initialized component instance
     */
    public SimpleTableModel getTableModel1() {
        if (tableModel1 == null) {//GEN-END:|285-getter|0|285-preInit
            // write pre-init user code here
            tableModel1 = new SimpleTableModel(new java.lang.String[][] {//GEN-BEGIN:|285-getter|1|285-postInit
                new java.lang.String[] { "" }}, null);//GEN-END:|285-getter|1|285-postInit
            // write post-init user code here
        }//GEN-BEGIN:|285-getter|2|
        return tableModel1;
    }
    //</editor-fold>//GEN-END:|285-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand3 ">//GEN-BEGIN:|291-getter|0|291-preInit
    /**
     * Returns an initiliazed instance of okCommand3 component.
     * @return the initialized component instance
     */
    public Command getOkCommand3() {
        if (okCommand3 == null) {//GEN-END:|291-getter|0|291-preInit
            // write pre-init user code here
            okCommand3 = new Command("Ok", Command.OK, 0);//GEN-LINE:|291-getter|1|291-postInit
            // write post-init user code here
        }//GEN-BEGIN:|291-getter|2|
        return okCommand3;
    }
    //</editor-fold>//GEN-END:|291-getter|2|





    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: itemCommand ">//GEN-BEGIN:|295-getter|0|295-preInit
    /**
     * Returns an initiliazed instance of itemCommand component.
     * @return the initialized component instance
     */
    public Command getItemCommand() {
        if (itemCommand == null) {//GEN-END:|295-getter|0|295-preInit
            // write pre-init user code here
            itemCommand = new Command("NOMINA UNO", Command.OK, 0);//GEN-LINE:|295-getter|1|295-postInit
            // write post-init user code here
        }//GEN-BEGIN:|295-getter|2|
        return itemCommand;
    }
    //</editor-fold>//GEN-END:|295-getter|2|





    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand4 ">//GEN-BEGIN:|303-getter|0|303-preInit
    /**
     * Returns an initiliazed instance of okCommand4 component.
     * @return the initialized component instance
     */
    public Command getOkCommand4() {
        if (okCommand4 == null) {//GEN-END:|303-getter|0|303-preInit
            // write pre-init user code here
            okCommand4 = new Command("Ok", Command.OK, 0);//GEN-LINE:|303-getter|1|303-postInit
            // write post-init user code here
        }//GEN-BEGIN:|303-getter|2|
        return okCommand4;
    }
    //</editor-fold>//GEN-END:|303-getter|2|
    //</editor-fold>





        // enter pre-action user code here

                // write pre-action user code here

    //</editor-fold>


    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: captura_valores_nomina_dos ">//GEN-BEGIN:|314-getter|0|314-preInit
    /**
     * Returns an initiliazed instance of captura_valores_nomina_dos component.
     * @return the initialized component instance
     */
    public Form getCaptura_valores_nomina_dos() {
        if (captura_valores_nomina_dos == null) {//GEN-END:|314-getter|0|314-preInit
            // write pre-init user code here
            captura_valores_nomina_dos = new Form("", new Item[] { getStringItem2(), getTextField18(), getTextField19(), getTextField21(), getTextField2(), getTextField13(), getTextField17(), getTextField22(), getTextField23(), getTextField24(), getTextField25() });//GEN-BEGIN:|314-getter|1|314-postInit
            captura_valores_nomina_dos.addCommand(getOkCommand5());
            captura_valores_nomina_dos.addCommand(getExitCommand4());
            captura_valores_nomina_dos.setCommandListener(this);//GEN-END:|314-getter|1|314-postInit
            // write post-init user code here
        }//GEN-BEGIN:|314-getter|2|
        return captura_valores_nomina_dos;
    }
    //</editor-fold>//GEN-END:|314-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand5 ">//GEN-BEGIN:|318-getter|0|318-preInit
    /**
     * Returns an initiliazed instance of okCommand5 component.
     * @return the initialized component instance
     */
    public Command getOkCommand5() {
        if (okCommand5 == null) {//GEN-END:|318-getter|0|318-preInit
            // write pre-init user code here
            okCommand5 = new Command("Ok", Command.OK, 0);//GEN-LINE:|318-getter|1|318-postInit
            // write post-init user code here
        }//GEN-BEGIN:|318-getter|2|
        return okCommand5;
    }
    //</editor-fold>//GEN-END:|318-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand6 ">//GEN-BEGIN:|321-getter|0|321-preInit
    /**
     * Returns an initiliazed instance of okCommand6 component.
     * @return the initialized component instance
     */
    public Command getOkCommand6() {
        if (okCommand6 == null) {//GEN-END:|321-getter|0|321-preInit
            // write pre-init user code here
            okCommand6 = new Command("Ok", Command.OK, 0);//GEN-LINE:|321-getter|1|321-postInit
            // write post-init user code here
        }//GEN-BEGIN:|321-getter|2|
        return okCommand6;
    }
    //</editor-fold>//GEN-END:|321-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand7 ">//GEN-BEGIN:|324-getter|0|324-preInit
    /**
     * Returns an initiliazed instance of okCommand7 component.
     * @return the initialized component instance
     */
    public Command getOkCommand7() {
        if (okCommand7 == null) {//GEN-END:|324-getter|0|324-preInit
            // write pre-init user code here
            okCommand7 = new Command("Ok", Command.OK, 0);//GEN-LINE:|324-getter|1|324-postInit
            // write post-init user code here
        }//GEN-BEGIN:|324-getter|2|
        return okCommand7;
    }
    //</editor-fold>//GEN-END:|324-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: unaNomina_o_dosNominas ">//GEN-BEGIN:|328-if|0|328-preIf
    /**
     * Performs an action assigned to the unaNomina_o_dosNominas if-point.
     */
    public void unaNomina_o_dosNominas() {//GEN-END:|328-if|0|328-preIf
        // enter pre-if user code here
        if (nomina == 2) {//GEN-LINE:|328-if|1|329-preAction
            // write pre-action user code here
            switchDisplayable(null, getCaptura_valores_nomina_dos());//GEN-LINE:|328-if|2|329-postAction
            // write post-action user code here
        } else {//GEN-LINE:|328-if|3|330-preAction

 // write pre-action user code here
            switchDisplayable(null, getCapacidad_de_Pago());//GEN-LINE:|328-if|4|330-postAction
            // write post-action user code here
        }//GEN-LINE:|328-if|5|328-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|328-if|6|
    //</editor-fold>//GEN-END:|328-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: itemCommand1 ">//GEN-BEGIN:|342-getter|0|342-preInit
    /**
     * Returns an initiliazed instance of itemCommand1 component.
     * @return the initialized component instance
     */
    public Command getItemCommand1() {
        if (itemCommand1 == null) {//GEN-END:|342-getter|0|342-preInit
            // write pre-init user code here
            itemCommand1 = new Command("Item", Command.ITEM, 0);//GEN-LINE:|342-getter|1|342-postInit
            // write post-init user code here
        }//GEN-BEGIN:|342-getter|2|
        return itemCommand1;
    }
    //</editor-fold>//GEN-END:|342-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: ticker ">//GEN-BEGIN:|344-getter|0|344-preInit
    /**
     * Returns an initiliazed instance of ticker component.
     * @return the initialized component instance
     */
    public Ticker getTicker() {
        if (ticker == null) {//GEN-END:|344-getter|0|344-preInit
            // write pre-init user code here
            ticker = new Ticker("");//GEN-LINE:|344-getter|1|344-postInit
            // write post-init user code here
        }//GEN-BEGIN:|344-getter|2|
        return ticker;
    }
    //</editor-fold>//GEN-END:|344-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand3 ">//GEN-BEGIN:|352-getter|0|352-preInit
    /**
     * Returns an initiliazed instance of exitCommand3 component.
     * @return the initialized component instance
     */
    public Command getExitCommand3() {
        if (exitCommand3 == null) {//GEN-END:|352-getter|0|352-preInit
            // write pre-init user code here
            exitCommand3 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|352-getter|1|352-postInit
            // write post-init user code here
        }//GEN-BEGIN:|352-getter|2|
        return exitCommand3;
    }
    //</editor-fold>//GEN-END:|352-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand8 ">//GEN-BEGIN:|354-getter|0|354-preInit
    /**
     * Returns an initiliazed instance of okCommand8 component.
     * @return the initialized component instance
     */
    public Command getOkCommand8() {
        if (okCommand8 == null) {//GEN-END:|354-getter|0|354-preInit
            // write pre-init user code here
            okCommand8 = new Command("Ok", Command.OK, 0);//GEN-LINE:|354-getter|1|354-postInit
            // write post-init user code here
        }//GEN-BEGIN:|354-getter|2|
        return okCommand8;
    }
    //</editor-fold>//GEN-END:|354-getter|2|





    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: font ">//GEN-BEGIN:|357-getter|0|357-preInit
    /**
     * Returns an initiliazed instance of font component.
     * @return the initialized component instance
     */
    public Font getFont() {
        if (font == null) {//GEN-END:|357-getter|0|357-preInit
            // write pre-init user code here
            font = Font.getDefaultFont();//GEN-LINE:|357-getter|1|357-postInit
            // write post-init user code here
        }//GEN-BEGIN:|357-getter|2|
        return font;
    }
    //</editor-fold>//GEN-END:|357-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand4 ">//GEN-BEGIN:|368-getter|0|368-preInit
    /**
     * Returns an initiliazed instance of exitCommand4 component.
     * @return the initialized component instance
     */
    public Command getExitCommand4() {
        if (exitCommand4 == null) {//GEN-END:|368-getter|0|368-preInit
            // write pre-init user code here
            exitCommand4 = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|368-getter|1|368-postInit
            // write post-init user code here
        }//GEN-BEGIN:|368-getter|2|
        return exitCommand4;
    }
    //</editor-fold>//GEN-END:|368-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: stringItem2 ">//GEN-BEGIN:|371-getter|0|371-preInit
    /**
     * Returns an initiliazed instance of stringItem2 component.
     * @return the initialized component instance
     */
    public StringItem getStringItem2() {
        if (stringItem2 == null) {//GEN-END:|371-getter|0|371-preInit
            // write pre-init user code here
            stringItem2 = new StringItem("NOMINA FISICA 2", null);//GEN-BEGIN:|371-getter|1|371-postInit
            stringItem2.setLayout(ImageItem.LAYOUT_CENTER | Item.LAYOUT_TOP | Item.LAYOUT_BOTTOM | Item.LAYOUT_VCENTER | Item.LAYOUT_2);//GEN-END:|371-getter|1|371-postInit
            // write post-init user code here
        }//GEN-BEGIN:|371-getter|2|
        return stringItem2;
    }
    //</editor-fold>//GEN-END:|371-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField18 ">//GEN-BEGIN:|372-getter|0|372-preInit
    /**
     * Returns an initiliazed instance of textField18 component.
     * @return the initialized component instance
     */
    public TextField getTextField18() {
        if (textField18 == null) {//GEN-END:|372-getter|0|372-preInit
            // write pre-init user code here
            textField18 = new TextField("Quincena que Abarca:", "1", 32, TextField.DECIMAL);//GEN-LINE:|372-getter|1|372-postInit
            // write post-init user code here
        }//GEN-BEGIN:|372-getter|2|
        return textField18;
    }
    //</editor-fold>//GEN-END:|372-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField19 ">//GEN-BEGIN:|373-getter|0|373-preInit
    /**
     * Returns an initiliazed instance of textField19 component.
     * @return the initialized component instance
     */
    public TextField getTextField19() {
        if (textField19 == null) {//GEN-END:|373-getter|0|373-preInit
            // write pre-init user code here
            textField19 = new TextField("Percepciones:", null, 32, TextField.DECIMAL);//GEN-LINE:|373-getter|1|373-postInit
            // write post-init user code here
        }//GEN-BEGIN:|373-getter|2|
        return textField19;
    }
    //</editor-fold>//GEN-END:|373-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField21 ">//GEN-BEGIN:|374-getter|0|374-preInit
    /**
     * Returns an initiliazed instance of textField21 component.
     * @return the initialized component instance
     */
    public TextField getTextField21() {
        if (textField21 == null) {//GEN-END:|374-getter|0|374-preInit
            // write pre-init user code here
            textField21 = new TextField("L\u00EDquido:", null, 32, TextField.DECIMAL);//GEN-LINE:|374-getter|1|374-postInit
            // write post-init user code here
        }//GEN-BEGIN:|374-getter|2|
        return textField21;
    }
    //</editor-fold>//GEN-END:|374-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKD_valida_menor ">//GEN-BEGIN:|389-if|0|389-preIf
    /**
     * Performs an action assigned to the DescuentoKD_valida_menor if-point.
     */
    public void DescuentoKD_valida_menor() {//GEN-END:|389-if|0|389-preIf
        // enter pre-if user code here
        if (textField8.getString().length() <=  textField3.getString().length()) {//GEN-LINE:|389-if|1|390-preAction
            // write pre-action user code here
            DescuentoKD();//GEN-LINE:|389-if|2|390-postAction
            // write post-action user code here
        } else {//GEN-LINE:|389-if|3|391-preAction
            // write pre-action user code here
            switchDisplayable(null, getDescuentoKD_Valida_Menor());//GEN-LINE:|389-if|4|391-postAction
            // write post-action user code here
        }//GEN-LINE:|389-if|5|389-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|389-if|6|
    //</editor-fold>//GEN-END:|389-if|6|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: DescuentoKD_Valida_Menor ">//GEN-BEGIN:|392-getter|0|392-preInit
    /**
     * Returns an initiliazed instance of DescuentoKD_Valida_Menor component.
     * @return the initialized component instance
     */
    public Alert getDescuentoKD_Valida_Menor() {
        if (DescuentoKD_Valida_Menor == null) {//GEN-END:|392-getter|0|392-preInit
            // write pre-init user code here
            DescuentoKD_Valida_Menor = new Alert("alert", "Cant. Quinc. del Descuento KD debe ser menor a Quincenas que Abarca", null, AlertType.ERROR);//GEN-BEGIN:|392-getter|1|392-postInit
            DescuentoKD_Valida_Menor.addCommand(getOkCommand9());
            DescuentoKD_Valida_Menor.setCommandListener(this);
            DescuentoKD_Valida_Menor.setTimeout(Alert.FOREVER);//GEN-END:|392-getter|1|392-postInit
            // write post-init user code here
        }//GEN-BEGIN:|392-getter|2|
        return DescuentoKD_Valida_Menor;
    }
    //</editor-fold>//GEN-END:|392-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand9 ">//GEN-BEGIN:|398-getter|0|398-preInit
    /**
     * Returns an initiliazed instance of okCommand9 component.
     * @return the initialized component instance
     */
    public Command getOkCommand9() {
        if (okCommand9 == null) {//GEN-END:|398-getter|0|398-preInit
            // write pre-init user code here
            okCommand9 = new Command("Ok", Command.OK, 0);//GEN-LINE:|398-getter|1|398-postInit
            // write post-init user code here
        }//GEN-BEGIN:|398-getter|2|
        return okCommand9;
    }
    //</editor-fold>//GEN-END:|398-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand1 ">//GEN-BEGIN:|407-getter|0|407-preInit
    /**
     * Returns an initiliazed instance of screenCommand1 component.
     * @return the initialized component instance
     */
    public Command getScreenCommand1() {
        if (screenCommand1 == null) {//GEN-END:|407-getter|0|407-preInit
            // write pre-init user code here
            screenCommand1 = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|407-getter|1|407-postInit
            // write post-init user code here
        }//GEN-BEGIN:|407-getter|2|
        return screenCommand1;
    }
    //</editor-fold>//GEN-END:|407-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand2 ">//GEN-BEGIN:|410-getter|0|410-preInit
    /**
     * Returns an initiliazed instance of screenCommand2 component.
     * @return the initialized component instance
     */
    public Command getScreenCommand2() {
        if (screenCommand2 == null) {//GEN-END:|410-getter|0|410-preInit
           // System.out.println("nomina"+nomina);
            if(nomina == 1)
            // write pre-init user code here
                screenCommand2 = new Command("DICTAMEN", Command.SCREEN, 0);//GEN-LINE:|410-getter|1|410-postInit
            else
                screenCommand2 = new Command("NOMINA 2", Command.SCREEN, 0);
            // write post-init user code here
        }//GEN-BEGIN:|410-getter|2|
        return screenCommand2;
    }
    //</editor-fold>//GEN-END:|410-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand3 ">//GEN-BEGIN:|416-getter|0|416-preInit
    /**
     * Returns an initiliazed instance of screenCommand3 component.
     * @return the initialized component instance
     */
    public Command getScreenCommand3() {
        if (screenCommand3 == null) {//GEN-END:|416-getter|0|416-preInit
            // write pre-init user code here
            screenCommand3 = new Command("NOMINA 2", Command.SCREEN, 0);//GEN-LINE:|416-getter|1|416-postInit
            // write post-init user code here
        }//GEN-BEGIN:|416-getter|2|
        return screenCommand3;
    }
    //</editor-fold>//GEN-END:|416-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer ">//GEN-BEGIN:|421-getter|0|421-preInit
    /**
     * Returns an initiliazed instance of spacer component.
     * @return the initialized component instance
     */
    public Spacer getSpacer() {
        if (spacer == null) {//GEN-END:|421-getter|0|421-preInit
            // write pre-init user code here
            spacer = new Spacer(16, 1);//GEN-LINE:|421-getter|1|421-postInit
            // write post-init user code here
        }//GEN-BEGIN:|421-getter|2|
        return spacer;
    }
    //</editor-fold>//GEN-END:|421-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField2 ">//GEN-BEGIN:|422-getter|0|422-preInit
    /**
     * Returns an initiliazed instance of textField2 component.
     * @return the initialized component instance
     */
    public TextField getTextField2() {
        if (textField2 == null) {//GEN-END:|422-getter|0|422-preInit
            // write pre-init user code here
            textField2 = new TextField("Descuento KD REF:", null, 32, TextField.ANY);//GEN-LINE:|422-getter|1|422-postInit
            // write post-init user code here
        }//GEN-BEGIN:|422-getter|2|
        return textField2;
    }
    //</editor-fold>//GEN-END:|422-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField13 ">//GEN-BEGIN:|423-getter|0|423-preInit
    /**
     * Returns an initiliazed instance of textField13 component.
     * @return the initialized component instance
     */
    public TextField getTextField13() {
        if (textField13 == null) {//GEN-END:|423-getter|0|423-preInit
            // write pre-init user code here
            textField13 = new TextField("Descuento KD No REF:", null, 32, TextField.ANY);//GEN-LINE:|423-getter|1|423-postInit
            // write post-init user code here
        }//GEN-BEGIN:|423-getter|2|
        return textField13;
    }
    //</editor-fold>//GEN-END:|423-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField17 ">//GEN-BEGIN:|424-getter|0|424-preInit
    /**
     * Returns an initiliazed instance of textField17 component.
     * @return the initialized component instance
     */
    public TextField getTextField17() {
        if (textField17 == null) {//GEN-END:|424-getter|0|424-preInit
            // write pre-init user code here
            textField17 = new TextField("Cant. Quinc. del Descuento KD:", null, 32, TextField.ANY);//GEN-LINE:|424-getter|1|424-postInit
            // write post-init user code here
        }//GEN-BEGIN:|424-getter|2|
        return textField17;
    }
    //</editor-fold>//GEN-END:|424-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField22 ">//GEN-BEGIN:|425-getter|0|425-preInit
    /**
     * Returns an initiliazed instance of textField22 component.
     * @return the initialized component instance
     */
    public TextField getTextField22() {
        if (textField22 == null) {//GEN-END:|425-getter|0|425-preInit
            // write pre-init user code here
            textField22 = new TextField("Bono 1:", null, 32, TextField.ANY);//GEN-LINE:|425-getter|1|425-postInit
            // write post-init user code here
        }//GEN-BEGIN:|425-getter|2|
        return textField22;
    }
    //</editor-fold>//GEN-END:|425-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField23 ">//GEN-BEGIN:|426-getter|0|426-preInit
    /**
     * Returns an initiliazed instance of textField23 component.
     * @return the initialized component instance
     */
    public TextField getTextField23() {
        if (textField23 == null) {//GEN-END:|426-getter|0|426-preInit
            // write pre-init user code here
            textField23 = new TextField("Bono 2:", null, 32, TextField.ANY);//GEN-LINE:|426-getter|1|426-postInit
            // write post-init user code here
        }//GEN-BEGIN:|426-getter|2|
        return textField23;
    }
    //</editor-fold>//GEN-END:|426-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField24 ">//GEN-BEGIN:|427-getter|0|427-preInit
    /**
     * Returns an initiliazed instance of textField24 component.
     * @return the initialized component instance
     */
    public TextField getTextField24() {
        if (textField24 == null) {//GEN-END:|427-getter|0|427-preInit
            // write pre-init user code here
            textField24 = new TextField("Bono 3:", null, 32, TextField.ANY);//GEN-LINE:|427-getter|1|427-postInit
            // write post-init user code here
        }//GEN-BEGIN:|427-getter|2|
        return textField24;
    }
    //</editor-fold>//GEN-END:|427-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField25 ">//GEN-BEGIN:|428-getter|0|428-preInit
    /**
     * Returns an initiliazed instance of textField25 component.
     * @return the initialized component instance
     */
    public TextField getTextField25() {
        if (textField25 == null) {//GEN-END:|428-getter|0|428-preInit
            // write pre-init user code here
            textField25 = new TextField("Bono 4:", null, 32, TextField.ANY);//GEN-LINE:|428-getter|1|428-postInit
            // write post-init user code here
        }//GEN-BEGIN:|428-getter|2|
        return textField25;
    }
    //</editor-fold>//GEN-END:|428-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand10 ">//GEN-BEGIN:|433-getter|0|433-preInit
    /**
     * Returns an initiliazed instance of okCommand10 component.
     * @return the initialized component instance
     */
    public Command getOkCommand10() {
        if (okCommand10 == null) {//GEN-END:|433-getter|0|433-preInit
            // write pre-init user code here
            okCommand10 = new Command("Ok", Command.OK, 0);//GEN-LINE:|433-getter|1|433-postInit
            // write post-init user code here
        }//GEN-BEGIN:|433-getter|2|
        return okCommand10;
    }
    //</editor-fold>//GEN-END:|433-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: Menu_Nominas_Desc_Solicita ">//GEN-BEGIN:|429-getter|0|429-preInit
    /**
     * Returns an initiliazed instance of Menu_Nominas_Desc_Solicita component.
     * @return the initialized component instance
     */
    public Form getMenu_Nominas_Desc_Solicita() {
        if (Menu_Nominas_Desc_Solicita == null) {//GEN-END:|429-getter|0|429-preInit
            // write pre-init user code here
            Menu_Nominas_Desc_Solicita = new Form("CALCULADORA DE L\u00CDQUIDO", new Item[] { getTextField(), getStringItem1(), getChoiceGroup() });//GEN-BEGIN:|429-getter|1|429-postInit
            Menu_Nominas_Desc_Solicita.addCommand(getOkCommand10());
            Menu_Nominas_Desc_Solicita.addCommand(getExitCommand5());
            Menu_Nominas_Desc_Solicita.setCommandListener(this);//GEN-END:|429-getter|1|429-postInit
            // write post-init user code here
        }//GEN-BEGIN:|429-getter|2|
        return Menu_Nominas_Desc_Solicita;
    }
    //</editor-fold>//GEN-END:|429-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: choiceGroup ">//GEN-BEGIN:|430-getter|0|430-preInit
    /**
     * Returns an initiliazed instance of choiceGroup component.
     * @return the initialized component instance
     */
    public ChoiceGroup getChoiceGroup() {
        if (choiceGroup == null) {//GEN-END:|430-getter|0|430-preInit
            // write pre-init user code here
            choiceGroup = new ChoiceGroup("", Choice.EXCLUSIVE);//GEN-BEGIN:|430-getter|1|430-postInit
            choiceGroup.append("Una N\u00F3mina", null);
            choiceGroup.append("Dos N\u00F3minas", null);
            choiceGroup.append("Tres N\u00F3minas", null);
            choiceGroup.append("Cuatro N\u00F3minas", null);
            choiceGroup.setSelectedFlags(new boolean[] { false, false, false, false });//GEN-END:|430-getter|1|430-postInit
            // write post-init user code here
        }//GEN-BEGIN:|430-getter|2|
        return choiceGroup;
    }
    //</editor-fold>//GEN-END:|430-getter|2|



    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField ">//GEN-BEGIN:|438-getter|0|438-preInit
    /**
     * Returns an initiliazed instance of textField component.
     * @return the initialized component instance
     */
    public TextField getTextField() {
        if (textField == null) {//GEN-END:|438-getter|0|438-preInit
            // write pre-init user code here
            textField = new TextField("Descuento Cr\u00E9dito que Solicita:", null, 32, TextField.DECIMAL);//GEN-LINE:|438-getter|1|438-postInit
            // write post-init user code here
        }//GEN-BEGIN:|438-getter|2|
        return textField;
    }
    //</editor-fold>//GEN-END:|438-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand5 ">//GEN-BEGIN:|441-getter|0|441-preInit
    /**
     * Returns an initiliazed instance of exitCommand5 component.
     * @return the initialized component instance
     */
    public Command getExitCommand5() {
        if (exitCommand5 == null) {//GEN-END:|441-getter|0|441-preInit
            // write pre-init user code here
            exitCommand5 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|441-getter|1|441-postInit
            // write post-init user code here
        }//GEN-BEGIN:|441-getter|2|
        return exitCommand5;
    }
    //</editor-fold>//GEN-END:|441-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: stringItem1 ">//GEN-BEGIN:|444-getter|0|444-preInit
    /**
     * Returns an initiliazed instance of stringItem1 component.
     * @return the initialized component instance
     */
    public StringItem getStringItem1() {
        if (stringItem1 == null) {//GEN-END:|444-getter|0|444-preInit
            // write pre-init user code here
            stringItem1 = new StringItem("N\u00F3minas a capturar:", null);//GEN-LINE:|444-getter|1|444-postInit
            // write post-init user code here
        }//GEN-BEGIN:|444-getter|2|
        return stringItem1;
    }
    //</editor-fold>//GEN-END:|444-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: Quincenas1 ">//GEN-BEGIN:|447-if|0|447-preIf
    /**
     * Performs an action assigned to the Quincenas1 if-point.
     */
    public void Quincenas1() {//GEN-END:|447-if|0|447-preIf
        // enter pre-if user code here
        if (textField18.getString().length() != 0) {//GEN-LINE:|447-if|1|448-preAction
            // write pre-action user code here
            DescuentoKDRef1();//GEN-LINE:|447-if|2|448-postAction
            // write post-action user code here
        } else {//GEN-LINE:|447-if|3|449-preAction
            // write pre-action user code here
            switchDisplayable(null, getQuincenas2());//GEN-LINE:|447-if|4|449-postAction
            // write post-action user code here
        }//GEN-LINE:|447-if|5|447-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|447-if|6|
    //</editor-fold>//GEN-END:|447-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand6 ">//GEN-BEGIN:|452-getter|0|452-preInit
    /**
     * Returns an initiliazed instance of exitCommand6 component.
     * @return the initialized component instance
     */
    public Command getExitCommand6() {
        if (exitCommand6 == null) {//GEN-END:|452-getter|0|452-preInit
            // write pre-init user code here
            exitCommand6 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|452-getter|1|452-postInit
            // write post-init user code here
        }//GEN-BEGIN:|452-getter|2|
        return exitCommand6;
    }
    //</editor-fold>//GEN-END:|452-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand17 ">//GEN-BEGIN:|456-getter|0|456-preInit
    /**
     * Returns an initiliazed instance of backCommand17 component.
     * @return the initialized component instance
     */
    public Command getBackCommand17() {
        if (backCommand17 == null) {//GEN-END:|456-getter|0|456-preInit
            // write pre-init user code here
            backCommand17 = new Command("Back", Command.BACK, 0);//GEN-LINE:|456-getter|1|456-postInit
            // write post-init user code here
        }//GEN-BEGIN:|456-getter|2|
        return backCommand17;
    }
    //</editor-fold>//GEN-END:|456-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: Quincenas2 ">//GEN-BEGIN:|451-getter|0|451-preInit
    /**
     * Returns an initiliazed instance of Quincenas2 component.
     * @return the initialized component instance
     */
    public Alert getQuincenas2() {
        if (Quincenas2 == null) {//GEN-END:|451-getter|0|451-preInit
            // write pre-init user code here
            Quincenas2 = new Alert("alert", "FALTA QUINCENAS.", null, AlertType.ERROR);//GEN-BEGIN:|451-getter|1|451-postInit
            Quincenas2.addCommand(getBackCommand17());
            Quincenas2.setCommandListener(this);
            Quincenas2.setTimeout(Alert.FOREVER);//GEN-END:|451-getter|1|451-postInit
            // write post-init user code here
        }//GEN-BEGIN:|451-getter|2|
        return Quincenas2;
    }
    //</editor-fold>//GEN-END:|451-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: Capacidad_de_Pago ">//GEN-BEGIN:|463-getter|0|463-preInit
    /**
     * Returns an initiliazed instance of Capacidad_de_Pago component.
     * @return the initialized component instance
     */
    public Form getCapacidad_de_Pago() {
        if (Capacidad_de_Pago == null) {//GEN-END:|463-getter|0|463-preInit
            // write pre-init user code here
            Capacidad_de_Pago = new Form("form", new Item[] { getTextField1(), getTextField20() });//GEN-BEGIN:|463-getter|1|463-postInit
            Capacidad_de_Pago.addCommand(getScreenCommand5());
            Capacidad_de_Pago.addCommand(getExitCommand7());
            Capacidad_de_Pago.setCommandListener(this);//GEN-END:|463-getter|1|463-postInit
                 //**********DECLARACIÓN DEL ARREGLO PARA SACAR LOS MINIMOS*********

             float compara[] = {intporcientoliquido, intce, intcp};

             if(intporcientoliquido == 0 && intce == 0 && intcp == 0)
             {
               intporcientoliquido = 1000000;
               intce = 1000000;
               intcp = 1000000;
             }

                menor = 0;
                for ( int x = 0; x < compara.length; x++ )
                {
                  if (  compara[x]<menor)
                  {
                    menor = compara[x];
                  }else
                   {
                      if(menor == 0 )
                      {
                        menor = compara[x];
                      }
                   }
                }
                textField20.setString("" + menor);

         //************CODIGO PARA ENCONTRAR EL % "DESCUENTO CREDITO QUE SOLICITA"
          float compara1[] = {intliquidosinbonos};

             if(intliquidosinbonos == 0)
             {
               intporcientoliquido = 1000000;
             }
                menor1 = 0;
                for ( int x = 0; x < compara1.length; x++ )
                {
                  if (  compara1[x]<menor1)
                  {
                    menor1 = compara1[x];
                  }else
                   {
                      if(menor1 == 0 )
                      {
                        menor1 = compara1[x];
                      }
                   }
                }

                intporcientodescuentosolicita = (intdescuentocsolicita/menor1)*100;

                textField1.setString("" + intporcientodescuentosolicita);

            // write post-init user code here
        }//GEN-BEGIN:|463-getter|2|
        return Capacidad_de_Pago;
    }
    //</editor-fold>//GEN-END:|463-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField1 ">//GEN-BEGIN:|464-getter|0|464-preInit
    /**
     * Returns an initiliazed instance of textField1 component.
     * @return the initialized component instance
     */
    public TextField getTextField1() {
        if (textField1 == null) {//GEN-END:|464-getter|0|464-preInit
            // write pre-init user code here
            textField1 = new TextField("Descuento Cr\u00E9dito que Solicita %:", null, 32, TextField.DECIMAL);//GEN-LINE:|464-getter|1|464-postInit
            // write post-init user code here
        }//GEN-BEGIN:|464-getter|2|
        return textField1;
    }
    //</editor-fold>//GEN-END:|464-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: textField20 ">//GEN-BEGIN:|465-getter|0|465-preInit
    /**
     * Returns an initiliazed instance of textField20 component.
     * @return the initialized component instance
     */
    public TextField getTextField20() {
        if (textField20 == null) {//GEN-END:|465-getter|0|465-preInit
            // write pre-init user code here
            textField20 = new TextField("Capacidad de Pago de la Operaci\u00F3n:", null, 32, TextField.DECIMAL);//GEN-LINE:|465-getter|1|465-postInit
            // write post-init user code here
        }//GEN-BEGIN:|465-getter|2|
        return textField20;
    }
    //</editor-fold>//GEN-END:|465-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand4 ">//GEN-BEGIN:|467-getter|0|467-preInit
    /**
     * Returns an initiliazed instance of screenCommand4 component.
     * @return the initialized component instance
     */
    public Command getScreenCommand4() {
        if (screenCommand4 == null) {//GEN-END:|467-getter|0|467-preInit
            // write pre-init user code here
            screenCommand4 = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|467-getter|1|467-postInit
            // write post-init user code here
        }//GEN-BEGIN:|467-getter|2|
        return screenCommand4;
    }
    //</editor-fold>//GEN-END:|467-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand11 ">//GEN-BEGIN:|470-getter|0|470-preInit
    /**
     * Returns an initiliazed instance of okCommand11 component.
     * @return the initialized component instance
     */
    public Command getOkCommand11() {
        if (okCommand11 == null) {//GEN-END:|470-getter|0|470-preInit
            // write pre-init user code here
            okCommand11 = new Command("Ok", Command.OK, 0);//GEN-LINE:|470-getter|1|470-postInit
            // write post-init user code here
        }//GEN-BEGIN:|470-getter|2|
        return okCommand11;
    }
    //</editor-fold>//GEN-END:|470-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand5 ">//GEN-BEGIN:|473-getter|0|473-preInit
    /**
     * Returns an initiliazed instance of screenCommand5 component.
     * @return the initialized component instance
     */
    public Command getScreenCommand5() {
        if (screenCommand5 == null) {//GEN-END:|473-getter|0|473-preInit
            // write pre-init user code here
            screenCommand5 = new Command("DICTAMEN", Command.SCREEN, 0);//GEN-LINE:|473-getter|1|473-postInit
            // write post-init user code here
        }//GEN-BEGIN:|473-getter|2|
        return screenCommand5;
    }
    //</editor-fold>//GEN-END:|473-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand12 ">//GEN-BEGIN:|476-getter|0|476-preInit
    /**
     * Returns an initiliazed instance of okCommand12 component.
     * @return the initialized component instance
     */
    public Command getOkCommand12() {
        if (okCommand12 == null) {//GEN-END:|476-getter|0|476-preInit
            if(nomina == 1)
            // write pre-init user code here
               // screenCommand2 = new Command("DICTAMEN", Command.SCREEN, 0);

                okCommand12 = new Command("LIQUIDEZ", Command.OK, 0);//GEN-LINE:|476-getter|1|476-postInit
            else
                okCommand12 = new Command("NOMINA 2", Command.OK, 0);


            // write post-init user code here
        }//GEN-BEGIN:|476-getter|2|
        return okCommand12;
    }
    //</editor-fold>//GEN-END:|476-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand7 ">//GEN-BEGIN:|479-getter|0|479-preInit
    /**
     * Returns an initiliazed instance of exitCommand7 component.
     * @return the initialized component instance
     */
    public Command getExitCommand7() {
        if (exitCommand7 == null) {//GEN-END:|479-getter|0|479-preInit
            // write pre-init user code here
            exitCommand7 = new Command("SALIR", Command.EXIT, 0);//GEN-LINE:|479-getter|1|479-postInit
            // write post-init user code here
        }//GEN-BEGIN:|479-getter|2|
        return exitCommand7;
    }
    //</editor-fold>//GEN-END:|479-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKDRef1 ">//GEN-BEGIN:|482-if|0|482-preIf
    /**
     * Performs an action assigned to the DescuentoKDRef1 if-point.
     */
    public void DescuentoKDRef1() {//GEN-END:|482-if|0|482-preIf
        // enter pre-if user code here
        if (textField2.getString().length() != 0) {//GEN-LINE:|482-if|1|483-preAction
            // write pre-action user code here
            DescuentoKDNoRef1();//GEN-LINE:|482-if|2|483-postAction
            // write post-action user code here
        } else {//GEN-LINE:|482-if|3|484-preAction
            // write pre-action user code here
            switchDisplayable(null, getDescuentoKDRef2());//GEN-LINE:|482-if|4|484-postAction
            // write post-action user code here
        }//GEN-LINE:|482-if|5|482-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|482-if|6|
    //</editor-fold>//GEN-END:|482-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand18 ">//GEN-BEGIN:|487-getter|0|487-preInit
    /**
     * Returns an initiliazed instance of backCommand18 component.
     * @return the initialized component instance
     */
    public Command getBackCommand18() {
        if (backCommand18 == null) {//GEN-END:|487-getter|0|487-preInit
            // write pre-init user code here
            backCommand18 = new Command("Back", Command.BACK, 0);//GEN-LINE:|487-getter|1|487-postInit
            // write post-init user code here
        }//GEN-BEGIN:|487-getter|2|
        return backCommand18;
    }
    //</editor-fold>//GEN-END:|487-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: DescuentoKDRef2 ">//GEN-BEGIN:|486-getter|0|486-preInit
    /**
     * Returns an initiliazed instance of DescuentoKDRef2 component.
     * @return the initialized component instance
     */
    public Alert getDescuentoKDRef2() {
        if (DescuentoKDRef2 == null) {//GEN-END:|486-getter|0|486-preInit
            // write pre-init user code here
            DescuentoKDRef2 = new Alert("alert1", "FALTA DESCUENTO KD REF.", null, null);//GEN-BEGIN:|486-getter|1|486-postInit
            DescuentoKDRef2.addCommand(getBackCommand18());
            DescuentoKDRef2.setCommandListener(this);
            DescuentoKDRef2.setTimeout(Alert.FOREVER);//GEN-END:|486-getter|1|486-postInit
            // write post-init user code here
        }//GEN-BEGIN:|486-getter|2|
        return DescuentoKDRef2;
    }
    //</editor-fold>//GEN-END:|486-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKDNoRef1 ">//GEN-BEGIN:|492-if|0|492-preIf
    /**
     * Performs an action assigned to the DescuentoKDNoRef1 if-point.
     */
    public void DescuentoKDNoRef1() {//GEN-END:|492-if|0|492-preIf
        // enter pre-if user code here
        if (textField13.getString().length() != 0) {//GEN-LINE:|492-if|1|493-preAction
            // write pre-action user code here
            DescuentoKDvalida_menor();//GEN-LINE:|492-if|2|493-postAction
            // write post-action user code here
        } else {//GEN-LINE:|492-if|3|494-preAction
            // write pre-action user code here
            switchDisplayable(null, getAlertaDescuentoKDNoRef1());//GEN-LINE:|492-if|4|494-postAction
            // write post-action user code here
        }//GEN-LINE:|492-if|5|492-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|492-if|6|
    //</editor-fold>//GEN-END:|492-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: method ">//GEN-BEGIN:|498-if|0|498-preIf
    /**
     * Performs an action assigned to the method if-point.
     */
    public void method() {//GEN-END:|498-if|0|498-preIf
        // enter pre-if user code here
        if (true) {//GEN-LINE:|498-if|1|499-preAction
            // write pre-action user code here
//GEN-LINE:|498-if|2|499-postAction
            // write post-action user code here
        } else {//GEN-LINE:|498-if|3|500-preAction
            // write pre-action user code here
//GEN-LINE:|498-if|4|500-postAction
            // write post-action user code here
        }//GEN-LINE:|498-if|5|498-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|498-if|6|
    //</editor-fold>//GEN-END:|498-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKDvalida_menor ">//GEN-BEGIN:|501-if|0|501-preIf
    /**
     * Performs an action assigned to the DescuentoKDvalida_menor if-point.
     */
    public void DescuentoKDvalida_menor() {//GEN-END:|501-if|0|501-preIf
        // enter pre-if user code here
        if (textField8.getString().length() <=  textField3.getString().length()) {//GEN-LINE:|501-if|1|502-preAction
            // write pre-action user code here
            DescuentoKD1();//GEN-LINE:|501-if|2|502-postAction
            // write post-action user code here
        } else {//GEN-LINE:|501-if|3|503-preAction
            // write pre-action user code here
            switchDisplayable(null, getDescuentoKDvalido_menor());//GEN-LINE:|501-if|4|503-postAction
            // write post-action user code here
        }//GEN-LINE:|501-if|5|501-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|501-if|6|
    //</editor-fold>//GEN-END:|501-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: alertaDescuentoKDNoRef1 ">//GEN-BEGIN:|496-getter|0|496-preInit
    /**
     * Returns an initiliazed instance of alertaDescuentoKDNoRef1 component.
     * @return the initialized component instance
     */
    public Alert getAlertaDescuentoKDNoRef1() {
        if (alertaDescuentoKDNoRef1 == null) {//GEN-END:|496-getter|0|496-preInit
            // write pre-init user code here
            alertaDescuentoKDNoRef1 = new Alert("alerta descuento KD no Ref1", "FALTA DESCUENTO KD NO REF.", null, AlertType.ERROR);//GEN-BEGIN:|496-getter|1|496-postInit
            alertaDescuentoKDNoRef1.addCommand(getBackCommand21());
            alertaDescuentoKDNoRef1.setCommandListener(this);
            alertaDescuentoKDNoRef1.setTimeout(Alert.FOREVER);//GEN-END:|496-getter|1|496-postInit
            // write post-init user code here
        }//GEN-BEGIN:|496-getter|2|
        return alertaDescuentoKDNoRef1;
    }
    //</editor-fold>//GEN-END:|496-getter|2|
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: DescuentoKDvalido_menor ">//GEN-BEGIN:|504-getter|0|504-preInit
    /**
     * Returns an initiliazed instance of DescuentoKDvalido_menor component.
     * @return the initialized component instance
     */
    public Alert getDescuentoKDvalido_menor() {
        if (DescuentoKDvalido_menor == null) {//GEN-END:|504-getter|0|504-preInit
            // write pre-init user code here
            DescuentoKDvalido_menor = new Alert("alert", "CANT. QUINC. DEL DESCUENTO KD DEBE SER MENOR A QUINCENAS QUE ABARCA", null, AlertType.ERROR);//GEN-BEGIN:|504-getter|1|504-postInit
            DescuentoKDvalido_menor.addCommand(getBackCommand20());
            DescuentoKDvalido_menor.setCommandListener(this);
            DescuentoKDvalido_menor.setTimeout(Alert.FOREVER);//GEN-END:|504-getter|1|504-postInit
            // write post-init user code here
        }//GEN-BEGIN:|504-getter|2|
        return DescuentoKDvalido_menor;
    }
    //</editor-fold>//GEN-END:|504-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: DescuentoKD1 ">//GEN-BEGIN:|507-if|0|507-preIf
    /**
     * Performs an action assigned to the DescuentoKD1 if-point.
     */
    public void DescuentoKD1() {//GEN-END:|507-if|0|507-preIf
        // enter pre-if user code here
        if (textField17.getString().length() != 0) {//GEN-LINE:|507-if|1|508-preAction
            // write pre-action user code here
            ambosceros1();//GEN-LINE:|507-if|2|508-postAction
            // write post-action user code here
        } else {//GEN-LINE:|507-if|3|509-preAction
            // write pre-action user code here
            switchDisplayable(null, getAlertDescuentoKD1());//GEN-LINE:|507-if|4|509-postAction
            // write post-action user code here
        }//GEN-LINE:|507-if|5|507-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|507-if|6|
    //</editor-fold>//GEN-END:|507-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: ambosceros1 ">//GEN-BEGIN:|512-if|0|512-preIf
    /**
     * Performs an action assigned to the ambosceros1 if-point.
     */
    public void ambosceros1() {//GEN-END:|512-if|0|512-preIf
        // enter pre-if user code here
        if (intquincenas == 0 && intdescuentokd == 0) {//GEN-LINE:|512-if|1|513-preAction
            // write pre-action user code here
            switchDisplayable(null, getError1());//GEN-LINE:|512-if|2|513-postAction
            // write post-action user code here
        } else {//GEN-LINE:|512-if|3|514-preAction
            // write pre-action user code here
//GEN-LINE:|512-if|4|514-postAction
            // write post-action user code here
        }//GEN-LINE:|512-if|5|512-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|512-if|6|
    //</editor-fold>//GEN-END:|512-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: alertDescuentoKD1 ">//GEN-BEGIN:|510-getter|0|510-preInit
    /**
     * Returns an initiliazed instance of alertDescuentoKD1 component.
     * @return the initialized component instance
     */
    public Alert getAlertDescuentoKD1() {
        if (alertDescuentoKD1 == null) {//GEN-END:|510-getter|0|510-preInit
            // write pre-init user code here
            alertDescuentoKD1 = new Alert("alert", "FALTA DESCUENTOKD1", null, AlertType.ERROR);//GEN-BEGIN:|510-getter|1|510-postInit
            alertDescuentoKD1.addCommand(getBackCommand19());
            alertDescuentoKD1.setCommandListener(this);
            alertDescuentoKD1.setTimeout(Alert.FOREVER);//GEN-END:|510-getter|1|510-postInit
            // write post-init user code here
        }//GEN-BEGIN:|510-getter|2|
        return alertDescuentoKD1;
    }
    //</editor-fold>//GEN-END:|510-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Method: VALIDACIONES ">//GEN-BEGIN:|531-if|0|531-preIf
    /**
     * Performs an action assigned to the VALIDACIONES if-point.
     */
    public void VALIDACIONES() {//GEN-END:|531-if|0|531-preIf
        // enter pre-if user code here
        if (true) {//GEN-LINE:|531-if|1|532-preAction
            // write pre-action user code here
//GEN-LINE:|531-if|2|532-postAction
            // write post-action user code here
        } else {//GEN-LINE:|531-if|3|533-preAction
            // write pre-action user code here
//GEN-LINE:|531-if|4|533-postAction
            // write post-action user code here
        }//GEN-LINE:|531-if|5|531-postIf
        // enter post-if user code here
    }//GEN-BEGIN:|531-if|6|
    //</editor-fold>//GEN-END:|531-if|6|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand19 ">//GEN-BEGIN:|518-getter|0|518-preInit
    /**
     * Returns an initiliazed instance of backCommand19 component.
     * @return the initialized component instance
     */
    public Command getBackCommand19() {
        if (backCommand19 == null) {//GEN-END:|518-getter|0|518-preInit
            // write pre-init user code here
            backCommand19 = new Command("Back", Command.BACK, 0);//GEN-LINE:|518-getter|1|518-postInit
            // write post-init user code here
        }//GEN-BEGIN:|518-getter|2|
        return backCommand19;
    }
    //</editor-fold>//GEN-END:|518-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand20 ">//GEN-BEGIN:|520-getter|0|520-preInit
    /**
     * Returns an initiliazed instance of backCommand20 component.
     * @return the initialized component instance
     */
    public Command getBackCommand20() {
        if (backCommand20 == null) {//GEN-END:|520-getter|0|520-preInit
            // write pre-init user code here
            backCommand20 = new Command("Back", Command.BACK, 0);//GEN-LINE:|520-getter|1|520-postInit
            // write post-init user code here
        }//GEN-BEGIN:|520-getter|2|
        return backCommand20;
    }
    //</editor-fold>//GEN-END:|520-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand21 ">//GEN-BEGIN:|522-getter|0|522-preInit
    /**
     * Returns an initiliazed instance of backCommand21 component.
     * @return the initialized component instance
     */
    public Command getBackCommand21() {
        if (backCommand21 == null) {//GEN-END:|522-getter|0|522-preInit
            // write pre-init user code here
            backCommand21 = new Command("Back", Command.BACK, 0);//GEN-LINE:|522-getter|1|522-postInit
            // write post-init user code here
        }//GEN-BEGIN:|522-getter|2|
        return backCommand21;
    }
    //</editor-fold>//GEN-END:|522-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand22 ">//GEN-BEGIN:|529-getter|0|529-preInit
    /**
     * Returns an initiliazed instance of backCommand22 component.
     * @return the initialized component instance
     */
    public Command getBackCommand22() {
        if (backCommand22 == null) {//GEN-END:|529-getter|0|529-preInit
            // write pre-init user code here
            backCommand22 = new Command("Back", Command.BACK, 0);//GEN-LINE:|529-getter|1|529-postInit
            // write post-init user code here
        }//GEN-BEGIN:|529-getter|2|
        return backCommand22;
    }
    //</editor-fold>//GEN-END:|529-getter|2|

    //<editor-fold defaultstate="collapsed" desc=" Generated Getter: error1 ">//GEN-BEGIN:|524-getter|0|524-preInit
    /**
     * Returns an initiliazed instance of error1 component.
     * @return the initialized component instance
     */
    public Alert getError1() {
        if (error1 == null) {//GEN-END:|524-getter|0|524-preInit
            // write pre-init user code here
            error1 = new Alert("alert", "\"QUINCENAS QUE SE ABARCA\" Y \"CANT. QUINC. DEL DESCUENTO KD\" DEBEN SER MAYOR A CERO.", null, AlertType.ERROR);//GEN-BEGIN:|524-getter|1|524-postInit
            error1.addCommand(getBackCommand22());
            error1.setCommandListener(this);
            error1.setTimeout(Alert.FOREVER);//GEN-END:|524-getter|1|524-postInit
            // write post-init user code here
        }//GEN-BEGIN:|524-getter|2|
        return error1;
    }
    //</editor-fold>//GEN-END:|524-getter|2|


















    //</editor-fold>





    /**
     * Returns a display instance.
     * @return the display instance.
     */
    public Display getDisplay() {
        return Display.getDisplay(this);
    }

    /**
     * Exits MIDlet.
     */
    public void exitMIDlet() {
       switchDisplayable(null, null);
        destroyApp(true);
        notifyDestroyed();
    }

    /**
     * Called when MIDlet is started.
     * Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
     */
    public void startApp() {
        if (midletPaused) {
            resumeMIDlet();
        } else {
            initialize();
            startMIDlet();
        }
        midletPaused = false;
    }

    /**
     * Called when MIDlet is paused.
     */
    public void pauseApp() {
        midletPaused = true;
    }

    /**
     * Called to signal the MIDlet to terminate.
     * @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
     */
    public void destroyApp(boolean unconditional) {
    }
}
